Skip to content

test_manhole.py is failing with latest 3.13 pre-release (rc2) #12313

@itamarst

Description

@itamarst
[FAIL]
Traceback (most recent call last):
  File "/Users/runner/work/twisted/twisted/.tox/macos-withcov-alldeps/lib/python3.13/site-packages/twisted/conch/test/test_manhole.py", line 237, in finished
    self._assertBuffer(
  File "/Users/runner/work/twisted/twisted/.tox/macos-withcov-alldeps/lib/python3.13/site-packages/twisted/conch/test/test_recvline.py", line 476, in _assertBuffer
    self.assertEqual(receivedLines, expectedLines)
  File "/Users/runner/work/twisted/twisted/.tox/macos-withcov-alldeps/lib/python3.13/site-packages/twisted/trial/_synctest.py", line 444, in assertEqual
    super().assertEqual(first, second, msg)
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/unittest/case.py", line 907, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/unittest/case.py", line 1113, in assertListEqual
    self.assertSequenceEqual(list1, list2, msg, seq_type=list)
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/unittest/case.py", line 1095, in assertSequenceEqual
    self.fail(msg)
twisted.trial.unittest.FailTest: Lists differ: [b">>[32 chars]", b'Exception: foo bar baz', b'>>> done', b''[91 chars] b''] != [b">>[32 chars]", b'Traceback (most recent call last):', b'  [164 chars] b'']

First differing element 1:
b'Exception: foo bar baz'
b'Traceback (most recent call last):'

  [b">>> raise Exception('foo bar baz')",
+  b'Traceback (most recent call last):',
+  b'  File "<console>", line 1, in <module>',
   b'Exception: foo bar baz',
   b'>>> done',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
-  b'',
-  b'',
   b'']

twisted.conch.test.test_manhole.ManholeLoopbackSSHTests.test_ExceptionWithCustomExcepthook
twisted.conch.test.test_manhole.ManholeLoopbackSSHTests.test_Exception
twisted.conch.test.test_manhole.ManholeLoopbackStdioTests.test_Exception
twisted.conch.test.test_manhole.ManholeLoopbackStdioTests.test_ExceptionWithCustomExcepthook
twisted.conch.test.test_manhole.ManholeLoopbackTelnetTests.test_Exception
twisted.conch.test.test_manhole.ManholeLoopbackTelnetTests.test_ExceptionWithCustomExcepthook

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions