diff --git a/tests/filterpyflakes.py b/tests/filterpyflakes.py --- a/tests/filterpyflakes.py +++ b/tests/filterpyflakes.py @@ -11,7 +11,7 @@ lines = [] 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 @@ for line in lines: 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) diff --git a/tests/test-check-pyflakes.t b/tests/test-check-pyflakes.t --- a/tests/test-check-pyflakes.t +++ b/tests/test-check-pyflakes.t @@ -10,5 +10,5 @@ run pyflakes on all tracked files ending > -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'