ufw ftbfs with Python 3.12 as default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ufw |
Fix Committed
|
Undecided
|
Jamie Strandboge | ||
ufw (Debian) |
Fix Released
|
Unknown
|
|||
ufw (Ubuntu) |
Fix Released
|
High
|
Jamie Strandboge |
Bug Description
=======
ERROR: test_ufwcommand
Test UFWCommand.parse()
-------
Traceback (most recent call last):
File "/<<PKGBUILDDIR
self.
^^^
AttributeError: 'ParserTestCase' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
=======
ERROR: test_ufwcommand
Test UFWCommand(
-------
Traceback (most recent call last):
File "/<<PKGBUILDDIR
self.
^^^
AttributeError: 'ParserTestCase' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
-------
Ran 24 tests in 7.584s
FAILED (errors=9)
test_skeleton
test_example (tests.
Test example dummy test ... ok
-------
Ran 1 test in 0.000s
OK
Related branches
- Jamie Strandboge: Approve
-
Diff: 1316 lines (+235/-235)6 files modifiedtests/unit/test_applications.py (+6/-6)
tests/unit/test_backend.py (+8/-8)
tests/unit/test_backend_iptables.py (+44/-44)
tests/unit/test_common.py (+139/-139)
tests/unit/test_parser.py (+11/-11)
tests/unit/test_util.py (+27/-27)
Changed in ufw (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: ftbfs rls-nn-incoming |
Changed in ufw: | |
status: | New → Fix Committed |
assignee: | nobody → Jamie Strandboge (jdstrand) |
Changed in ufw (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Jamie Strandboge (jdstrand) |
Changed in ufw (Debian): | |
status: | Unknown → Fix Released |
Changed in ufw (Ubuntu): | |
status: | In Progress → Confirmed |
Changed in ufw (Debian): | |
status: | Fix Released → New |
Changed in ufw (Debian): | |
status: | New → Fix Released |
Another fix is needed for python 3.12:
Performing tests 'good/reports' >/tests/ testarea/ lib/python/ ufw/util. py:483: SyntaxWarning: invalid escape sequence '\.' >/tests/ testarea/ lib/python/ ufw/util. py:745: SyntaxWarning: invalid escape sequence '\s'
- installing
- result:
FAIL:
4a5,8
> /<<PKGBUILDDIR>
> quads = re.split('\.', nm)
> /<<PKGBUILDDIR>
> tmp = re.split('\s', out)