dev-python/pyflakes-0.4.0 fails tests with Python 2.7. * Testing of dev-python/pyflakes-0.4.0 with Python 2.7... ..........................................................................................................................F............................... ====================================================================== FAIL: test_eofSyntaxError (pyflakes.test.test_script.CheckTests) The error reported for source files which end prematurely causing a ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 102, in maybeDeferred result = f(*args, **kw) File "/usr/lib64/python2.7/site-packages/twisted/internet/utils.py", line 191, in runWithWarningsSuppressed result = f(*a, **kw) File "/var/tmp/portage/dev-python/pyflakes-0.4.0/work/pyflakes-0.4.0/pyflakes/test/test_script.py", line 107, in test_eofSyntaxError """ % (sourcePath.path,)) File "/usr/lib64/python2.7/site-packages/twisted/trial/unittest.py", line 290, in failUnlessEqual % (msg, pformat(first), pformat(second))) FailTest: not equal: a = '/var/tmp/portage/dev-python/pyflakes-0.4.0/work/pyflakes-0.4.0/pyflakes.test.test_script/CheckTests/test_eofSyntaxError/yknsFV/temp:2: invalid syntax\n\n ^\n' b = '/var/tmp/portage/dev-python/pyflakes-0.4.0/work/pyflakes-0.4.0/pyflakes.test.test_script/CheckTests/test_eofSyntaxError/yknsFV/temp:1: unexpected EOF while parsing\ndef foo(\n ^\n' ---------------------------------------------------------------------- Ran 159 tests in 0.811s FAILED (failures=1)
Created attachment 211553 [details] pyflakes-0.4.0:20091130-020343.log
Using python 2.7.1, tests work with the latest version from SVN (r17946, 2010-04-13, http://divmod.org/svn/Divmod/trunk/Pyflakes). However, with python 2.6.6-r1 three tests "fail": ====================================================================== FAIL: If no C{methodName} argument is passed to the constructor, L{run} will ---------------------------------------------------------------------- UnsupportedTrialFeature: ('skip', 'Python 2.7 required for dict/set comprehension tests') ====================================================================== FAIL: Dict comprehensions are properly handled. ---------------------------------------------------------------------- UnsupportedTrialFeature: ('skip', 'Python 2.7 required for dict/set comprehension tests') ====================================================================== FAIL: Set comprehensions are properly handled. ---------------------------------------------------------------------- UnsupportedTrialFeature: ('skip', 'Python 2.7 required for dict/set comprehension tests') ---------------------------------------------------------------------- Ran 174 tests in 0.376s FAILED (failures=3)
Tests of dev-python/pyflakes-0.4.0 now pass.