Description of problem: Invalid escape sequences are now SyntaxWarning in python 3.8: $ python3.8 >>> '\d' <stdin>:1: SyntaxWarning: invalid escape sequence \d '\\d' The test suite of tornado turns this into a SyntaxError: + /usr/bin/python3 -m tornado.test.runtests --verbose /builddir/build/BUILD/tornado-5.0.2/tornado/util.py:255: SyntaxWarning: invalid escape sequence \d ... SyntaxError: invalid escape sequence \. Version-Release number: 5.0.2-5.fc31
The bytecompilation gives idea where the problem is: + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-tornado-5.0.2-5.fc31.x86_64/usr/lib/debug/usr/lib64/python3.8 using /usr/bin/python3.8 Bytecompiling .py files below /builddir/build/BUILDROOT/python-tornado-5.0.2-5.fc31.x86_64/usr/lib/debug/usr/lib64/python2.7 using /usr/bin/python2.7 Bytecompiling .py files below /builddir/build/BUILDROOT/python-tornado-5.0.2-5.fc31.x86_64/usr/lib64/python2.7 using /usr/bin/python2.7 Bytecompiling .py files below /builddir/build/BUILDROOT/python-tornado-5.0.2-5.fc31.x86_64/usr/lib64/python3.8 using /usr/bin/python3.8 /usr/lib64/python3.8/web_test.py:365: SyntaxWarning: invalid escape sequence \? /usr/lib64/python3.8/util.py:255: SyntaxWarning: invalid escape sequence \d /usr/lib64/python3.8/web.py:1834: SyntaxWarning: invalid escape sequence \. /usr/lib64/python3.8/web_test.py:365: SyntaxWarning: invalid escape sequence \? /usr/lib64/python3.8/util.py:255: SyntaxWarning: invalid escape sequence \d /usr/lib64/python3.8/web.py:1834: SyntaxWarning: invalid escape sequence \.
The fix is part of this upstream commit: https://github.com/tornadoweb/tornado/commit/6dceb64ed27c1d48af22142f2ebae946f0e85e95
Ok, that is not the only failure: ====================================================================== FAIL: test_inline_read_error (tornado.test.iostream_test.TestIOStreamSSL) ---------------------------------------------------------------------- Traceback (most recent call last): File "tornado/testing.py", line 124, in __call__ result = self.orig_method(*args, **kwargs) File "tornado/test/iostream_test.py", line 931, in test_inline_read_error server.read_bytes(1, lambda data: None) AssertionError: error not raised ====================================================================== FAIL: test_inline_read_error (tornado.test.iostream_test.TestIOStreamSSLContext) ---------------------------------------------------------------------- Traceback (most recent call last): File "tornado/testing.py", line 124, in __call__ result = self.orig_method(*args, **kwargs) File "tornado/test/iostream_test.py", line 931, in test_inline_read_error server.read_bytes(1, lambda data: None) AssertionError: error not raised ---------------------------------------------------------------------- Ran 1493 tests in 18.546s
https://src.fedoraproject.org/rpms/python-tornado/pull-request/4