Mercurial > public > mercurial-scm > hg-stable
diff tests/filterpyflakes.py @ 32317:80e3002cd29e
tests: remove special handling for undefined memoryview
'memoryview' was introduced in Python 2.7. 4adc090fa2fb added code
to filterpyflakes.py to ignore "undefined name 'memoryview'" pyflakes
warnings. Since we no longer support <Python 2.7, we can remove this
workaround.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 13 May 2017 11:31:36 -0700 |
parents | 21772a6a7861 |
children | 50eaccb8353f |
line wrap: on
line diff
--- a/tests/filterpyflakes.py Sat May 13 11:20:51 2017 -0700 +++ b/tests/filterpyflakes.py Sat May 13 11:31:36 2017 -0700 @@ -11,7 +11,7 @@ for line in sys.stdin: # We blacklist tests that are too noisy for us pats = [ - r"undefined name '(WindowsError|memoryview)'", + r"undefined name 'WindowsError'", r"redefinition of unused '[^']+' from line", ] @@ -33,7 +33,6 @@ sys.stdout.write(line) print() -# self test of "undefined name" detection for other than 'memoryview' +# self test of "undefined name" detection if False: - print(memoryview) print(undefinedname)