test_check_nullbytes regressed on 3.11.4
mweinelt opened this issue · 4 comments
mweinelt commented
We've updated python311 from 3.11.3 to 3.11.4 and now the following test has regressed. Works fine on 3.10.12 though.
pycodestyle-aarch64-linux> FAIL: test_check_nullbytes (test_api.APITestCase.test_check_nullbytes)
pycodestyle-aarch64-linux> ----------------------------------------------------------------------
pycodestyle-aarch64-linux> Traceback (most recent call last):
pycodestyle-aarch64-linux> File "/build/pycodestyle-2.10.0/testsuite/test_api.py", line 333, in test_check_nullbytes
pycodestyle-aarch64-linux> self.assertTrue(stdout.startswith(expected),
pycodestyle-aarch64-linux> AssertionError: False is not true : Output 'stdin:1:1: E901 SyntaxError: source code string cannot contain null bytes\n' does not start with 'stdin:1:1: E901 ValueError'
pycodestyle-aarch64-linux>
asottile commented
next time please try the latest revision
mweinelt commented
Fails on 54b053e all the same. You created a special case for 3.12, but this is 3.11.4.
pycodestyle/testsuite/test_api.py
Lines 331 to 336 in 54b053e
s3v- commented
Fails on 54b053e all the same. You created a special case for 3.12, but this is 3.11.4.
pycodestyle/testsuite/test_api.py
Lines 331 to 336 in 54b053e
Changes was backported to 3.11: python/cpython#104195
Currently we have a bug report in Debian (Python 3.11 in stable, testing and sid ATM).