Skip to content
Snippets Groups Projects
Commit 80e3002c authored by Gregory Szorc's avatar Gregory Szorc
Browse files

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.
parent 1a3a08b5
No related branches found
No related tags found
No related merge requests found
......@@ -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,5 +33,5 @@
sys.stdout.write(line)
print()
# self test of "undefined name" detection for other than 'memoryview'
# self test of "undefined name" detection
if False:
......@@ -37,3 +37,2 @@
if False:
print(memoryview)
print(undefinedname)
......@@ -10,5 +10,5 @@
> -X mercurial/pycompat.py -X contrib/python-zstandard \
> 2>/dev/null \
> | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
tests/filterpyflakes.py:39: undefined name 'undefinedname'
tests/filterpyflakes.py:38: undefined name 'undefinedname'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment