Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295137 - dev-python/pyflakes-0.4.0 fails tests with Python 2.7
Summary: dev-python/pyflakes-0.4.0 fails tests with Python 2.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.7
  Show dependency tree
 
Reported: 2009-11-30 02:01 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2010-12-05 16:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pyflakes-0.4.0:20091130-020343.log (pyflakes-0.4.0:20091130-020343.log,5.94 KB, text/plain)
2009-11-30 02:02 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-30 02:01:36 UTC
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)
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-30 02:02:29 UTC
Created attachment 211553 [details]
pyflakes-0.4.0:20091130-020343.log
Comment 2 Matthias Liebig 2010-12-02 14:31:47 UTC
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)
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-12-05 16:05:38 UTC
Tests of dev-python/pyflakes-0.4.0 now pass.