Mercurial > hg
diff tests/test-check-pyflakes.t @ 21271:4adc090fa2fb
tests: ignore "undefined name 'memoryview'" pyflakes error on earlier Python
Before this patch, "test-check-pyflakes.t" shows unexpected "undefined
name 'memoryview'" error for "mercurial/util.py" on Python 2.6.x or
earlier, because they don't define symbol 'memoryview'.
This patch introduces excluding patterns into "filterpyflakes.py" to
ignore "undefined name 'memoryview'" pyflakes error on Python 2.6.x or
earlier
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Fri, 09 May 2014 08:44:53 +0900 |
parents | e3ca21e4d05f |
children | 507ce509fd22 |
line wrap: on
line diff
--- a/tests/test-check-pyflakes.t Fri May 09 08:44:53 2014 +0900 +++ b/tests/test-check-pyflakes.t Fri May 09 08:44:53 2014 +0900 @@ -17,5 +17,6 @@ tests/hghave.py:*: 'pygments' imported but unused (glob) tests/hghave.py:*: 'ssl' imported but unused (glob) contrib/win32/hgwebdir_wsgi.py:93: 'from isapi.install import *' used; unable to detect undefined names (glob) + tests/filterpyflakes.py:59: undefined name 'undefinedname' #endif