##// END OF EJS Templates
tests: remove special handling for undefined memoryview...
Gregory Szorc -
r32277:80e3002c default
parent child Browse files
Show More
@@ -11,7 +11,7 b' lines = []'
11 for line in sys.stdin:
11 for line in sys.stdin:
12 # We blacklist tests that are too noisy for us
12 # We blacklist tests that are too noisy for us
13 pats = [
13 pats = [
14 r"undefined name '(WindowsError|memoryview)'",
14 r"undefined name 'WindowsError'",
15 r"redefinition of unused '[^']+' from line",
15 r"redefinition of unused '[^']+' from line",
16 ]
16 ]
17
17
@@ -33,7 +33,6 b' for line in lines:'
33 sys.stdout.write(line)
33 sys.stdout.write(line)
34 print()
34 print()
35
35
36 # self test of "undefined name" detection for other than 'memoryview'
36 # self test of "undefined name" detection
37 if False:
37 if False:
38 print(memoryview)
39 print(undefinedname)
38 print(undefinedname)
@@ -10,5 +10,5 b' run pyflakes on all tracked files ending'
10 > -X mercurial/pycompat.py -X contrib/python-zstandard \
10 > -X mercurial/pycompat.py -X contrib/python-zstandard \
11 > 2>/dev/null \
11 > 2>/dev/null \
12 > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
12 > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
13 tests/filterpyflakes.py:39: undefined name 'undefinedname'
13 tests/filterpyflakes.py:38: undefined name 'undefinedname'
14
14
General Comments 0
You need to be logged in to leave comments. Login now