[Piuparts-devel] Bug#1061749: piuparts ftbfs with Python 3.12 as default

Matthias Klose doko at debian.org
Mon Jan 29 11:54:04 GMT 2024


Package: src:piuparts
Version: 1.3
Severity: serious
Tags: sid trixie ftbfs
User: debian-python at lists.debian.org
Usertags: python3.12

With python3-defaults from experimental, the package fails to build:

[...]
======================================================================
ERROR: testAlternatives 
(test_dependencyparser.DependencyParserTests.testAlternatives)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_dependencyparser.py", line 34, in 
testAlternatives
     self.failUnlessEqual(names, [["foo"], ["bar", "foobar"]])
     ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DependencyParserTests' object has no attribute 
'failUnlessEqual'

======================================================================
ERROR: testEmpty (test_dependencyparser.DependencyParserTests.testEmpty)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_dependencyparser.py", line 22, in 
testEmpty
     self.failUnlessEqual(deps, [])
     ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DependencyParserTests' object has no attribute 
'failUnlessEqual'

======================================================================
ERROR: testSingle (test_dependencyparser.DependencyParserTests.testSingle)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_dependencyparser.py", line 26, in 
testSingle
     self.failUnlessEqual(names, [["foo"]])
     ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DependencyParserTests' object has no attribute 
'failUnlessEqual'

======================================================================
ERROR: testTwo (test_dependencyparser.DependencyParserTests.testTwo)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_dependencyparser.py", line 30, in 
testTwo
     self.failUnlessEqual(names, [["foo"], ["bar"]])
     ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DependencyParserTests' object has no attribute 
'failUnlessEqual'

======================================================================
ERROR: testAbsoluteBroken 
(test_piuparts.IsBrokenSymlinkTests.testAbsoluteBroken)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 110, in 
testAbsoluteBroken
     self.failUnless(is_broken_symlink(self.testdir, self.testdir, 
"absolute-broken"))
     ^^^^^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failUnless'

======================================================================
ERROR: testAbsoluteBrokenToSymlink 
(test_piuparts.IsBrokenSymlinkTests.testAbsoluteBrokenToSymlink)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 113, in 
testAbsoluteBrokenToSymlink
     self.failUnless(is_broken_symlink(self.testdir, self.testdir, 
"absolute-broken-to-symlink"))
     ^^^^^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failUnless'

======================================================================
ERROR: testAbsoluteSelfLoopBroken 
(test_piuparts.IsBrokenSymlinkTests.testAbsoluteSelfLoopBroken)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 125, in 
testAbsoluteSelfLoopBroken
     self.failUnless(is_broken_symlink(self.testdir, self.testdir, 
"absolute-selfloop"))
     ^^^^^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failUnless'

======================================================================
ERROR: testAbsoluteWorks 
(test_piuparts.IsBrokenSymlinkTests.testAbsoluteWorks)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 142, in 
testAbsoluteWorks
     self.failIf(is_broken_symlink(self.testdir, self.testdir, 
"absolute-works"))
     ^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failIf'. 
Did you mean: 'fail'?

======================================================================
ERROR: testAbsoluteWorksToSymlink 
(test_piuparts.IsBrokenSymlinkTests.testAbsoluteWorksToSymlink)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 145, in 
testAbsoluteWorksToSymlink
     self.failIf(is_broken_symlink(self.testdir, self.testdir, 
"absolute-works-to-symlink"))
     ^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failIf'. 
Did you mean: 'fail'?

======================================================================
ERROR: testExpandingSelfLoopBroken 
(test_piuparts.IsBrokenSymlinkTests.testExpandingSelfLoopBroken)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 122, in 
testExpandingSelfLoopBroken
     self.failUnless(is_broken_symlink(self.testdir, self.testdir, 
"explode"))
     ^^^^^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failUnless'

======================================================================
ERROR: testMultiLevelNestedAbsoluteSymlinks 
(test_piuparts.IsBrokenSymlinkTests.testMultiLevelNestedAbsoluteSymlinks)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 166, in 
testMultiLevelNestedAbsoluteSymlinks
     self.failIf(is_broken_symlink(self.testdir, self.testdir, 
"first-link"))
     ^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failIf'. 
Did you mean: 'fail'?

======================================================================
ERROR: testMultiLevelNestedSymlinks 
(test_piuparts.IsBrokenSymlinkTests.testMultiLevelNestedSymlinks)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 156, in 
testMultiLevelNestedSymlinks
     self.failIf(is_broken_symlink(self.testdir, self.testdir, 
"target/first-link"))
     ^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failIf'. 
Did you mean: 'fail'?

======================================================================
ERROR: testRelativeBroken 
(test_piuparts.IsBrokenSymlinkTests.testRelativeBroken)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 104, in 
testRelativeBroken
     self.failUnless(is_broken_symlink(self.testdir, self.testdir, 
"relative-broken"))
     ^^^^^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failUnless'

======================================================================
ERROR: testRelativeBrokenToSymlink 
(test_piuparts.IsBrokenSymlinkTests.testRelativeBrokenToSymlink)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 107, in 
testRelativeBrokenToSymlink
     self.failUnless(is_broken_symlink(self.testdir, self.testdir, 
"relative-broken-to-symlink"))
     ^^^^^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failUnless'

======================================================================
ERROR: testRelativeWorks 
(test_piuparts.IsBrokenSymlinkTests.testRelativeWorks)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 136, in 
testRelativeWorks
     self.failIf(is_broken_symlink(self.testdir, self.testdir, 
"relative-works"))
     ^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failIf'. 
Did you mean: 'fail'?

======================================================================
ERROR: testRelativeWorksToSymlink 
(test_piuparts.IsBrokenSymlinkTests.testRelativeWorksToSymlink)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 139, in 
testRelativeWorksToSymlink
     self.failIf(is_broken_symlink(self.testdir, self.testdir, 
"relative-works-to-symlink"))
     ^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failIf'. 
Did you mean: 'fail'?

======================================================================
ERROR: testSelfLoopBroken 
(test_piuparts.IsBrokenSymlinkTests.testSelfLoopBroken)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 119, in 
testSelfLoopBroken
     self.failUnless(is_broken_symlink(self.testdir, self.testdir, 
"selfloop"))
     ^^^^^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failUnless'

======================================================================
ERROR: testSubdirSelfLoopBroken 
(test_piuparts.IsBrokenSymlinkTests.testSubdirSelfLoopBroken)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 128, in 
testSubdirSelfLoopBroken
     self.failUnless(is_broken_symlink(self.testdir, self.testdir, 
"dir/selfloop"))
     ^^^^^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failUnless'

======================================================================
ERROR: testTrailingSlashBroken 
(test_piuparts.IsBrokenSymlinkTests.testTrailingSlashBroken)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 116, in 
testTrailingSlashBroken
     self.failUnless(is_broken_symlink(self.testdir, self.testdir, 
"trailing-slash-broken"))
     ^^^^^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failUnless'

======================================================================
ERROR: testTrailingSlashWorks 
(test_piuparts.IsBrokenSymlinkTests.testTrailingSlashWorks)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_piuparts.py", line 148, in 
testTrailingSlashWorks
     self.failIf(is_broken_symlink(self.testdir, self.testdir, 
"trailing-slash-works"))
     ^^^^^^^^^^^
AttributeError: 'IsBrokenSymlinkTests' object has no attribute 'failIf'. 
Did you mean: 'fail'?

----------------------------------------------------------------------
Ran 40 tests in 0.122s

FAILED (errors=20)
make[1]: *** [Makefile:169: check] Error 1



More information about the Piuparts-devel mailing list