You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4 twisted.trial._dist.test.test_workertrial tests fail because of issues resembling the following:
===============================================================================
[FAIL]
Traceback (most recent call last):
File "/home/mgorny/twisted/.venv/lib/pypy3.9/site-packages/twisted/trial/_dist/test/test_workertrial.py", line 126, in test_readInterrupted
main(self.fdopen)
File "/home/mgorny/twisted/.venv/lib/pypy3.9/site-packages/twisted/trial/_dist/workertrial.py", line 75, in main
protocolIn = _fdopen(_WORKER_AMP_STDIN, "rb")
File "/home/mgorny/twisted/.venv/lib/pypy3.9/site-packages/twisted/trial/_dist/test/test_workertrial.py", line 72, in fdopen
self.assertIdentical("rb", mode)
File "/home/mgorny/twisted/.venv/lib/pypy3.9/site-packages/twisted/trial/_synctest.py", line 439, in assertIs
raise self.failureException(msg or f"{first!r} is not {second!r}")
twisted.trial.unittest.FailTest: 'rb' is not 'rb'
twisted.trial._dist.test.test_workertrial.MainTests.test_readInterrupted
-------------------------------------------------------------------------------
The cause seems to be that .assertIdentical() is used to perform the test rather than .assertEqual(). It seems that comparing two strings for equality happens to work on CPython (though it causes a SyntaxWarning) but does not on PyPy.
4 twisted.trial._dist.test.test_workertrial tests fail because of issues resembling the following:
The cause seems to be that .assertIdentical() is used to perform the test rather than .assertEqual(). It seems that comparing two strings for equality happens to work on CPython (though it causes a SyntaxWarning) but does not on PyPy.
Searchable metadata
The text was updated successfully, but these errors were encountered: