Package: src:python-testfixtures
Version: 7.2.2-1
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12
python-testfixtures autopkg tests fail with Python 3.12:
[...]
233s =================================== FAILURES
===================================
233s ______________ TempDirectoryTests.test_as_path_relative_sequence
_______________
233s
233s self = <testfixtures.tests.test_tempdirectory.TempDirectoryTests
testMethod=test_as_path_relative_sequence>
233s
233s def test_as_path_relative_sequence(self):
233s with TempDirectory(encoding='ascii') as d:
233s > compare(d.as_path(('foo', 'bar')),
expected=Path(d.path) / 'foo' / 'bar', strict=True)
233s E AssertionError: PosixPath not as expected:
233s E
233s E attributes differ:
233s E '_raw_paths': ['/tmp/tmpmv5f4rio', 'foo', 'bar']
(expected) != ['/tmp/tmpmv5f4rio/foo/bar'] (actual)
233s E
233s E While comparing ._raw_paths: sequence not as expected:
233s E
233s E same:
233s E []
233s E
233s E expected:
233s E ['/tmp/tmpmv5f4rio', 'foo', 'bar']
233s E
233s E actual:
233s E ['/tmp/tmpmv5f4rio/foo/bar']
233s E
233s E While comparing ._raw_paths[0]:
233s E '/tmp/tmpmv5f4rio' (expected)
233s E !=
233s E '/tmp/tmpmv5f4rio/foo/bar' (actual)
233s
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_tempdirectory.py:313:
AssertionError
233s _______________ TempDirectoryTests.test_as_path_relative_string
________________
233s
233s self = <testfixtures.tests.test_tempdirectory.TempDirectoryTests
testMethod=test_as_path_relative_string>
233s
233s def test_as_path_relative_string(self):
233s with TempDirectory(encoding='ascii') as d:
233s > compare(d.as_path('foo/bar'), expected=Path(d.path) /
'foo' / 'bar', strict=True)
233s E AssertionError: PosixPath not as expected:
233s E
233s E attributes differ:
233s E '_raw_paths': ['/tmp/tmpzu22wvdh', 'foo', 'bar']
(expected) != ['/tmp/tmpzu22wvdh/foo/bar'] (actual)
233s E
233s E While comparing ._raw_paths: sequence not as expected:
233s E
233s E same:
233s E []
233s E
233s E expected:
233s E ['/tmp/tmpzu22wvdh', 'foo', 'bar']
233s E
233s E actual:
233s E ['/tmp/tmpzu22wvdh/foo/bar']
233s E
233s E While comparing ._raw_paths[0]:
233s E '/tmp/tmpzu22wvdh' (expected)
233s E !=
233s E '/tmp/tmpzu22wvdh/foo/bar' (actual)
233s
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_tempdirectory.py:309:
AssertionError
233s =============================== warnings summary
===============================
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_compare.py:710
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_compare.py:710:
SyntaxWarning: invalid escape sequence '\('
233s "\(1, 2, 3\) \(<(class|type) 'tuple'>\) \(expected\) != "
233s
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_compare.py:712
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_compare.py:712:
SyntaxWarning: invalid escape sequence '\('
233s "\(<(class|type) 'generator'>\) \(actual\)"
233s
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_compare.py:748
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_compare.py:748:
SyntaxWarning: invalid escape sequence '\('
233s "range\(1, 4\) \(<(class|type) 'x?range'>\) != "
233s
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_compare.py:750
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_compare.py:750:
SyntaxWarning: invalid escape sequence '\('
233s "\(<(class|type) 'generator'>\)"
233s
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:10
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:10:
SyntaxWarning: invalid escape sequence '\d'
233s self.assertTrue('on 40220' == S('on \d+'))
233s
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:13
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:13:
SyntaxWarning: invalid escape sequence '\d'
233s self.assertFalse('on xxx' == S('on \d+'))
233s
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:16
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:16:
SyntaxWarning: invalid escape sequence '\d'
233s self.assertFalse('on 40220' != S('on \d+'))
233s
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:19
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:19:
SyntaxWarning: invalid escape sequence '\d'
233s self.assertTrue('on xxx' != S('on \d+'))
233s
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:25
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:25:
SyntaxWarning: invalid escape sequence '\d'
233s 1, 2, S('on \d+')
233s
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:29
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:29:
SyntaxWarning: invalid escape sequence '\d'
233s self.assertFalse(40220 == S('on \d+'))
233s
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:33
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:33:
SyntaxWarning: invalid escape sequence '\d'
233s repr(S('on \d+')))
233s
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:37
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_stringcomparison.py:37:
SyntaxWarning: invalid escape sequence '\d'
233s str(S('on \d+')))
233s
233s
../../../usr/lib/python3/dist-packages/testfixtures/tests/test_twisted.py:90
233s
/usr/lib/python3/dist-packages/testfixtures/tests/test_twisted.py:90:
SyntaxWarning: invalid escape sequence '\d'
233s (INFO, S('Sent FOO, length \d+')),
233s
233s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
233s =========================== short test summary info
============================
233s FAILED
tests/test_tempdirectory.py::TempDirectoryTests::test_as_path_relative_sequence
233s FAILED
tests/test_tempdirectory.py::TempDirectoryTests::test_as_path_relative_string
233s ================== 2 failed, 901 passed, 13 warnings in 2.38s
==================