Source: python-fs
Version: 2.4.16-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20231212 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> # skip tests that is not runnable with python3-pyftpdlib due to missing
> # test moudles
> dh_auto_test -- --test-pytest --test-args="--ignore tests/test_ftpfs.py"
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; 
> python3.12 -m pytest --ignore tests/test_ftpfs.py
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> collected 2168 items
> 
> tests/test_appfs.py .................................................... [  
> 2%]
> .....F............s..................................................... [  
> 5%]
> ..............F............s............................................ [  
> 9%]
> .......................F............s................................... [ 
> 12%]
> ................................F............s.......................... [ 
> 15%]
> .........................................F............s................. [ 
> 19%]
> ..................................................F............s........ [ 
> 22%]
> ..                                                                       [ 
> 22%]
> tests/test_base.py .                                                     [ 
> 22%]
> tests/test_bulk.py .                                                     [ 
> 22%]
> tests/test_copy.py ..........................................            [ 
> 24%]
> tests/test_doctest.py .................................................. [ 
> 26%]
> ...........                                                              [ 
> 27%]
> tests/test_encoding.py ...                                               [ 
> 27%]
> tests/test_enums.py .                                                    [ 
> 27%]
> tests/test_error_tools.py ..                                             [ 
> 27%]
> tests/test_errors.py ....                                                [ 
> 27%]
> tests/test_filesize.py ....                                              [ 
> 27%]
> tests/test_fscompat.py ...                                               [ 
> 28%]
> tests/test_ftp_parse.py .......                                          [ 
> 28%]
> tests/test_glob.py ..........                                            [ 
> 28%]
> tests/test_imports.py .                                                  [ 
> 28%]
> tests/test_info.py .........                                             [ 
> 29%]
> tests/test_iotools.py ............                                       [ 
> 29%]
> tests/test_lrucache.py .                                                 [ 
> 29%]
> tests/test_memoryfs.py ................................................. [ 
> 32%]
> ..........F.......................                                       [ 
> 33%]
> tests/test_mirror.py ................................                    [ 
> 35%]
> tests/test_mode.py ..                                                    [ 
> 35%]
> tests/test_mountfs.py .................................................. [ 
> 37%]
> .......F................................................................ [ 
> 40%]
> ..............F............................                              [ 
> 42%]
> tests/test_move.py .............                                         [ 
> 43%]
> tests/test_multifs.py .................................................. [ 
> 45%]
> ..............F..........s............                                   [ 
> 47%]
> tests/test_new_name.py .                                                 [ 
> 47%]
> tests/test_opener.py ..................................                  [ 
> 49%]
> tests/test_osfs.py .............s....................................... [ 
> 51%]
> ...........F...........s...........                                      [ 
> 53%]
> tests/test_path.py .....................                                 [ 
> 54%]
> tests/test_permissions.py ..............                                 [ 
> 54%]
> tests/test_subfs.py .............s...................................... [ 
> 57%]
> ............F...........s........................s...................... [ 
> 60%]
> ............................F...........s............                    [ 
> 63%]
> tests/test_tarfs.py .................................................... [ 
> 65%]
> ......F..........s...................................................... [ 
> 68%]
> .............F..........s............................................... [ 
> 72%]
> ....................F..........s........................................ [ 
> 75%]
> ...........................F..........s................................. [ 
> 78%]
> ..................................F..........s.......................... [ 
> 82%]
> ....................                                                     [ 
> 82%]
> tests/test_tempfs.py .............s..................................... [ 
> 85%]
> .............F...........s..........................s................... [ 
> 88%]
> ...............................F...........s...........                  [ 
> 91%]
> tests/test_time.py ..                                                    [ 
> 91%]
> tests/test_tools.py ...                                                  [ 
> 91%]
> tests/test_tree.py ....                                                  [ 
> 91%]
> tests/test_url_tools.py .                                                [ 
> 91%]
> tests/test_walk.py ....................                                  [ 
> 92%]
> tests/test_wildcard.py ...                                               [ 
> 92%]
> tests/test_wrap.py ..................................                    [ 
> 94%]
> tests/test_wrapfs.py ...                                                 [ 
> 94%]
> tests/test_zipfs.py .................................................... [ 
> 96%]
> ......F..........s....................................................   
> [100%]
> 
> =================================== FAILURES 
> ===================================
> __________________________ TestUserDataFS.test_remove 
> __________________________
> 
> self = <tests.test_appfs.TestUserDataFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestUserDataFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> _________________________ TestUserConfigFS.test_remove 
> _________________________
> 
> self = <tests.test_appfs.TestUserConfigFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestUserConfigFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> _________________________ TestUserCacheFS.test_remove 
> __________________________
> 
> self = <tests.test_appfs.TestUserCacheFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestUserCacheFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> __________________________ TestSiteDataFS.test_remove 
> __________________________
> 
> self = <tests.test_appfs.TestSiteDataFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestSiteDataFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> _________________________ TestSiteConfigFS.test_remove 
> _________________________
> 
> self = <tests.test_appfs.TestSiteConfigFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestSiteConfigFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> __________________________ TestUserLogFS.test_remove 
> ___________________________
> 
> self = <tests.test_appfs.TestUserLogFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestUserLogFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> ___________________________ TestMemoryFS.test_remove 
> ___________________________
> 
> self = <tests.test_memoryfs.TestMemoryFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestMemoryFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> ___________________________ TestMountFS.test_remove 
> ____________________________
> 
> self = <tests.test_mountfs.TestMountFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestMountFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> ___________________________ TestMountFS2.test_remove 
> ___________________________
> 
> self = <tests.test_mountfs.TestMountFS2 testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestMountFS2' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> ___________________________ TestMultiFS.test_remove 
> ____________________________
> 
> self = <tests.test_multifs.TestMultiFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestMultiFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> _____________________________ TestOSFS.test_remove 
> _____________________________
> 
> self = <tests.test_osfs.TestOSFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestOSFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> _____________________________ TestOSFS.test_remove 
> _____________________________
> 
> self = <tests.test_osfs.TestOSFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestOSFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> ____________________________ TestSubFS.test_remove 
> _____________________________
> 
> self = <tests.test_subfs.TestSubFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestSubFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> __________________________ TestWriteTarFS.test_remove 
> __________________________
> 
> self = <tests.test_tarfs.TestWriteTarFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestWriteTarFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> _____________________ TestWriteTarFSToFileobj.test_remove 
> ______________________
> 
> self = <tests.test_tarfs.TestWriteTarFSToFileobj testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestWriteTarFSToFileobj' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> ______________________ TestWriteGZippedTarFS.test_remove 
> _______________________
> 
> self = <tests.test_tarfs.TestWriteGZippedTarFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestWriteGZippedTarFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> ______________________ TestWriteXZippedTarFS.test_remove 
> _______________________
> 
> self = <tests.test_tarfs.TestWriteXZippedTarFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestWriteXZippedTarFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> ______________________ TestWriteBZippedTarFS.test_remove 
> _______________________
> 
> self = <tests.test_tarfs.TestWriteBZippedTarFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestWriteBZippedTarFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> _____________________________ TestOSFS.test_remove 
> _____________________________
> 
> self = <tests.test_osfs.TestOSFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestOSFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> ____________________________ TestTempFS.test_remove 
> ____________________________
> 
> self = <tests.test_tempfs.TestTempFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestTempFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> __________________________ TestWriteZipFS.test_remove 
> __________________________
> 
> self = <tests.test_zipfs.TestWriteZipFS testMethod=test_remove>
> 
>     def test_remove(self):
>     
>         self.fs.writebytes("foo1", b"test1")
>         self.fs.writebytes("foo2", b"test2")
>         self.fs.writebytes("foo3", b"test3")
>     
>         self.assert_isfile("foo1")
>         self.assert_isfile("foo2")
>         self.assert_isfile("foo3")
>     
>         self.fs.remove("foo2")
>     
>         self.assert_isfile("foo1")
>         self.assert_not_exists("foo2")
>         self.assert_isfile("foo3")
>     
>         with self.assertRaises(errors.ResourceNotFound):
>             self.fs.remove("bar")
>     
>         self.fs.makedir("dir")
>         with self.assertRaises(errors.FileExpected):
>             self.fs.remove("dir")
>     
>         self.fs.makedirs("foo/bar/baz/")
>     
>         error_msg = "resource 'foo/bar/egg/test.txt' not found"
> >       assertRaisesRegex = getattr(self, "assertRaisesRegex", 
> > self.assertRaisesRegexp)
> E       AttributeError: 'TestWriteZipFS' object has no attribute 
> 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
> 
> fs/test.py:1085: AttributeError
> =============================== warnings summary 
> ===============================
> fs/__init__.py:4
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/fs/__init__.py:4: 
> DeprecationWarning: pkg_resources is deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html
>     __import__("pkg_resources").declare_namespace(__name__)  # type: ignore
> 
> fs/__init__.py:4
> .pybuild/cpython3_3.12/build/tests/test_imports.py::TestImports::test_import_path
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/fs/__init__.py:4: 
> DeprecationWarning: Deprecated call to 
> `pkg_resources.declare_namespace('fs')`.
>   Implementing implicit namespace packages (as specified in PEP 420) is 
> preferred to `pkg_resources.declare_namespace`. See 
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
>     __import__("pkg_resources").declare_namespace(__name__)  # type: ignore
> 
> fs/opener/__init__.py:6
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/fs/opener/__init__.py:6: 
> DeprecationWarning: Deprecated call to 
> `pkg_resources.declare_namespace('fs.opener')`.
>   Implementing implicit namespace packages (as specified in PEP 420) is 
> preferred to `pkg_resources.declare_namespace`. See 
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
>     __import__("pkg_resources").declare_namespace(__name__)  # type: ignore
> 
> ../../../../../../usr/lib/python3/dist-packages/pkg_resources/__init__.py:2350
>   /usr/lib/python3/dist-packages/pkg_resources/__init__.py:2350: 
> DeprecationWarning: Deprecated call to 
> `pkg_resources.declare_namespace('fs')`.
>   Implementing implicit namespace packages (as specified in PEP 420) is 
> preferred to `pkg_resources.declare_namespace`. See 
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
>     declare_namespace(parent)
> 
> fs/base.py:75
> fs/base.py:75
> fs/base.py:75
> fs/base.py:75
> fs/base.py:75
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/fs/base.py:75: 
> DeprecationWarning: method 'settext' has been deprecated, please rename to 
> 'writetext'
>     warnings.warn(
> 
> .pybuild/cpython3_3.12/build/tests/test_copy.py: 10 warnings
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_copy.py:47: 
> DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled 
> for removal in a future version. Use timezone-aware objects to represent 
> datetimes in UTC: datetime.datetime.now(datetime.UTC).
>     utcnow = datetime.datetime.utcnow()
> 
> .pybuild/cpython3_3.12/build/tests/test_copy.py::TestCopyIfNewer::test_copy_file_if_same_fs
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_copy.py:176: 
> DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled 
> for removal in a future version. Use timezone-aware objects to represent 
> datetimes in UTC: datetime.datetime.now(datetime.UTC).
>     "foo2/exists", datetime.datetime.utcnow() + datetime.timedelta(hours=1)
> 
> .pybuild/cpython3_3.12/build/tests/test_copy.py::TestCopyIfOlder::test_copy_file_if_same_fs
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_copy.py:421: 
> DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled 
> for removal in a future version. Use timezone-aware objects to represent 
> datetimes in UTC: datetime.datetime.now(datetime.UTC).
>     "foo2/exists", datetime.datetime.utcnow() - datetime.timedelta(hours=1)
> 
> .pybuild/cpython3_3.12/build/tests/test_wrap.py::TestWrapReadOnlySyspath::test_copy_file_if_newer
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/fs/copy.py:163: 
> DeprecationWarning: copy_file_if_newer is deprecated. Use copy_file_if 
> instead.
>     warnings.warn(
> 
> .pybuild/cpython3_3.12/build/tests/test_wrap.py::TestWrapReadOnlySyspath::test_copy_fs_if_newer
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/fs/copy.py:70: 
> DeprecationWarning: copy_fs_if_newer is deprecated. Use copy_fs_if instead.
>     warnings.warn(
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info 
> ============================
> FAILED tests/test_appfs.py::TestUserDataFS::test_remove - AttributeError: 
> 'Te...
> FAILED tests/test_appfs.py::TestUserConfigFS::test_remove - AttributeError: 
> '...
> FAILED tests/test_appfs.py::TestUserCacheFS::test_remove - AttributeError: 
> 'T...
> FAILED tests/test_appfs.py::TestSiteDataFS::test_remove - AttributeError: 
> 'Te...
> FAILED tests/test_appfs.py::TestSiteConfigFS::test_remove - AttributeError: 
> '...
> FAILED tests/test_appfs.py::TestUserLogFS::test_remove - AttributeError: 
> 'Tes...
> FAILED tests/test_memoryfs.py::TestMemoryFS::test_remove - AttributeError: 
> 'T...
> FAILED tests/test_mountfs.py::TestMountFS::test_remove - AttributeError: 
> 'Tes...
> FAILED tests/test_mountfs.py::TestMountFS2::test_remove - AttributeError: 
> 'Te...
> FAILED tests/test_multifs.py::TestMultiFS::test_remove - AttributeError: 
> 'Tes...
> FAILED tests/test_osfs.py::TestOSFS::test_remove - AttributeError: 
> 'TestOSFS'...
> FAILED tests/test_subfs.py::TestOSFS::test_remove - AttributeError: 
> 'TestOSFS...
> FAILED tests/test_subfs.py::TestSubFS::test_remove - AttributeError: 
> 'TestSub...
> FAILED tests/test_tarfs.py::TestWriteTarFS::test_remove - AttributeError: 
> 'Te...
> FAILED tests/test_tarfs.py::TestWriteTarFSToFileobj::test_remove - 
> AttributeE...
> FAILED tests/test_tarfs.py::TestWriteGZippedTarFS::test_remove - 
> AttributeErr...
> FAILED tests/test_tarfs.py::TestWriteXZippedTarFS::test_remove - 
> AttributeErr...
> FAILED tests/test_tarfs.py::TestWriteBZippedTarFS::test_remove - 
> AttributeErr...
> FAILED tests/test_tempfs.py::TestOSFS::test_remove - AttributeError: 
> 'TestOSF...
> FAILED tests/test_tempfs.py::TestTempFS::test_remove - AttributeError: 
> 'TestT...
> FAILED tests/test_zipfs.py::TestWriteZipFS::test_remove - AttributeError: 
> 'Te...
> ========== 21 failed, 2124 passed, 23 skipped, 24 warnings in 34.55s 
> ===========
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest --ignore 
> tests/test_ftpfs.py
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; 
> python3.11 -m pytest --ignore tests/test_ftpfs.py
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> collected 2168 items
> 
> tests/test_appfs.py .................................................... [  
> 2%]
> ..................s..................................................... [  
> 5%]
> ...........................s............................................ [  
> 9%]
> ....................................s................................... [ 
> 12%]
> .............................................s.......................... [ 
> 15%]
> ......................................................s................. [ 
> 19%]
> ...............................................................s........ [ 
> 22%]
> ..                                                                       [ 
> 22%]
> tests/test_base.py .                                                     [ 
> 22%]
> tests/test_bulk.py .                                                     [ 
> 22%]
> tests/test_copy.py ..........................................            [ 
> 24%]
> tests/test_doctest.py .................................................. [ 
> 26%]
> ...........                                                              [ 
> 27%]
> tests/test_encoding.py ...                                               [ 
> 27%]
> tests/test_enums.py .                                                    [ 
> 27%]
> tests/test_error_tools.py ..                                             [ 
> 27%]
> tests/test_errors.py ....                                                [ 
> 27%]
> tests/test_filesize.py ....                                              [ 
> 27%]
> tests/test_fscompat.py ...                                               [ 
> 28%]
> tests/test_ftp_parse.py .......                                          [ 
> 28%]
> tests/test_glob.py ..........                                            [ 
> 28%]
> tests/test_imports.py .                                                  [ 
> 28%]
> tests/test_info.py .........                                             [ 
> 29%]
> tests/test_iotools.py ............                                       [ 
> 29%]
> tests/test_lrucache.py .                                                 [ 
> 29%]
> tests/test_memoryfs.py ................................................. [ 
> 32%]
> ..................................                                       [ 
> 33%]
> tests/test_mirror.py ................................                    [ 
> 35%]
> tests/test_mode.py ..                                                    [ 
> 35%]
> tests/test_mountfs.py .................................................. [ 
> 37%]
> ........................................................................ [ 
> 40%]
> ...........................................                              [ 
> 42%]
> tests/test_move.py .............                                         [ 
> 43%]
> tests/test_multifs.py .................................................. [ 
> 45%]
> .........................s............                                   [ 
> 47%]
> tests/test_new_name.py .                                                 [ 
> 47%]
> tests/test_opener.py ..................................                  [ 
> 49%]
> tests/test_osfs.py .............s....................................... [ 
> 51%]
> .......................s...........                                      [ 
> 53%]
> tests/test_path.py .....................                                 [ 
> 54%]
> tests/test_permissions.py ..............                                 [ 
> 54%]
> tests/test_subfs.py .............s...................................... [ 
> 57%]
> ........................s........................s...................... [ 
> 60%]
> ........................................s............                    [ 
> 63%]
> tests/test_tarfs.py .................................................... [ 
> 65%]
> .................s...................................................... [ 
> 68%]
> ........................s............................................... [ 
> 72%]
> ...............................s........................................ [ 
> 75%]
> ......................................s................................. [ 
> 78%]
> .............................................s.......................... [ 
> 82%]
> ....................                                                     [ 
> 82%]
> tests/test_tempfs.py .............s..................................... [ 
> 85%]
> .........................s..........................s................... [ 
> 88%]
> ...........................................s...........                  [ 
> 91%]
> tests/test_time.py ..                                                    [ 
> 91%]
> tests/test_tools.py ...                                                  [ 
> 91%]
> tests/test_tree.py ....                                                  [ 
> 91%]
> tests/test_url_tools.py .                                                [ 
> 91%]
> tests/test_walk.py ....................                                  [ 
> 92%]
> tests/test_wildcard.py ...                                               [ 
> 92%]
> tests/test_wrap.py ..................................                    [ 
> 94%]
> tests/test_wrapfs.py ...                                                 [ 
> 94%]
> tests/test_zipfs.py .................................................... [ 
> 96%]
> .................s....................................................   
> [100%]
> 
> =============================== warnings summary 
> ===============================
> fs/__init__.py:4
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/fs/__init__.py:4: 
> DeprecationWarning: pkg_resources is deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html
>     __import__("pkg_resources").declare_namespace(__name__)  # type: ignore
> 
> fs/__init__.py:4
> .pybuild/cpython3_3.11/build/tests/test_imports.py::TestImports::test_import_path
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/fs/__init__.py:4: 
> DeprecationWarning: Deprecated call to 
> `pkg_resources.declare_namespace('fs')`.
>   Implementing implicit namespace packages (as specified in PEP 420) is 
> preferred to `pkg_resources.declare_namespace`. See 
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
>     __import__("pkg_resources").declare_namespace(__name__)  # type: ignore
> 
> fs/opener/__init__.py:6
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/fs/opener/__init__.py:6: 
> DeprecationWarning: Deprecated call to 
> `pkg_resources.declare_namespace('fs.opener')`.
>   Implementing implicit namespace packages (as specified in PEP 420) is 
> preferred to `pkg_resources.declare_namespace`. See 
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
>     __import__("pkg_resources").declare_namespace(__name__)  # type: ignore
> 
> ../../../../../../usr/lib/python3/dist-packages/pkg_resources/__init__.py:2350
>   /usr/lib/python3/dist-packages/pkg_resources/__init__.py:2350: 
> DeprecationWarning: Deprecated call to 
> `pkg_resources.declare_namespace('fs')`.
>   Implementing implicit namespace packages (as specified in PEP 420) is 
> preferred to `pkg_resources.declare_namespace`. See 
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
>     declare_namespace(parent)
> 
> fs/base.py:75
> fs/base.py:75
> fs/base.py:75
> fs/base.py:75
> fs/base.py:75
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/fs/base.py:75: 
> DeprecationWarning: method 'settext' has been deprecated, please rename to 
> 'writetext'
>     warnings.warn(
> 
> .pybuild/cpython3_3.11/build/tests/test_wrap.py::TestWrapReadOnlySyspath::test_copy_file_if_newer
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/fs/copy.py:163: 
> DeprecationWarning: copy_file_if_newer is deprecated. Use copy_file_if 
> instead.
>     warnings.warn(
> 
> .pybuild/cpython3_3.11/build/tests/test_wrap.py::TestWrapReadOnlySyspath::test_copy_fs_if_newer
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/fs/copy.py:70: 
> DeprecationWarning: copy_fs_if_newer is deprecated. Use copy_fs_if instead.
>     warnings.warn(
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ================ 2145 passed, 23 skipped, 12 warnings in 33.30s 
> ================
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 
> 3.11" --test-pytest "--test-args=--ignore tests/test_ftpfs.py" returned exit 
> code 13


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/python-fs_2.4.16-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to