Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1387

"test_imagelist" tests fail on their own or when run before "test_filesystem"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      (picard-venv) freso@koume ~/D/M/picard (master)> python setup.py test --tests test_filesystem,test_imagelist
      running test
      ................
      ----------------------------------------------------------------------
      Ran 16 tests in 0.009s
      
      OK
      (picard-venv) freso@koume ~/D/M/picard (master)> python setup.py test --tests test_imagelist,test_filesystem
      running test
      ................
      ----------------------------------------------------------------------
      Ran 16 tests in 0.006s
      
      OK
      (picard-venv) freso@koume ~/D/M/picard (master)> python setup.py test --tests test_imagelist
      running test
      EEEEEEEEEEEEE
      ======================================================================
      ERROR: test_add_to_cluster (test.test_imagelist.AddMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 213, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ======================================================================
      ERROR: test_remove_from_album (test.test_imagelist.RemoveMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 123, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ======================================================================
      ERROR: test_remove_from_album_with_common_images (test.test_imagelist.RemoveMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 123, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ======================================================================
      ERROR: test_remove_from_cluster (test.test_imagelist.RemoveMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 123, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ======================================================================
      ERROR: test_remove_from_cluster_with_common_images (test.test_imagelist.RemoveMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 123, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ======================================================================
      ERROR: test_remove_from_empty_album (test.test_imagelist.RemoveMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 123, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ======================================================================
      ERROR: test_remove_from_empty_cluster (test.test_imagelist.RemoveMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 123, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ======================================================================
      ERROR: test_remove_from_empty_track (test.test_imagelist.RemoveMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 123, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ======================================================================
      ERROR: test_remove_from_track (test.test_imagelist.RemoveMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 123, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ======================================================================
      ERROR: test_remove_from_track_with_common_images (test.test_imagelist.RemoveMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 123, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ======================================================================
      ERROR: test_update_album_images (test.test_imagelist.UpdateMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 45, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ======================================================================
      ERROR: test_update_cluster_images (test.test_imagelist.UpdateMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 45, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ======================================================================
      ERROR: test_update_track_images (test.test_imagelist.UpdateMetadataImagesTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 45, in setUp
          (self.test_images, self.test_files) = create_test_files()
        File "/home/freso/Development/MetaBrainz/picard/test/test_imagelist.py", line 25, in create_test_files
          CoverArtImage(url='file://file1', data=create_fake_png(b'a')),
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 151, in __init__
          self.set_data(data)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 248, in set_data
          self.datahash = DataHash(data, suffix=self.extension)
        File "/home/freso/Development/MetaBrainz/picard/picard/coverart/image.py", line 68, in __init__
          QObject.tagger.register_cleanup(self.delete_file)
      AttributeError: type object 'QObject' has no attribute 'tagger'
      
      ----------------------------------------------------------------------
      Ran 13 tests in 0.004s
      
      FAILED (errors=13)
      At least one test failed.
      

      This is currently preventing the picard-git AUR package from updating.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                freso Frederik “Freso” S. Olesen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package