Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 452884 - dev-python/3to2: fails tests
Summary: dev-python/3to2: fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-18 23:52 UTC by Michał Górny
Modified: 2016-03-08 11:49 UTC (History)
1 user (show)

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


Attachments
Build log for python2.7 (build-python2.7.log,15.72 KB, text/plain)
2013-01-18 23:52 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-18 23:52:03 UTC
Created attachment 336080 [details]
Build log for python2.7

======================================================================
FAIL: test_basic_functionality (lib3to2.tests.test_classdecorator.Test_classdecorator)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib3to2/tests/test_classdecorator.py", line 18, in test_basic_functionality
    self.check(b, a)
  File "/usr/lib64/python2.7/lib2to3/tests/test_fixers.py", line 37, in check
    tree = self._check(before, after)
  File "/usr/lib64/python2.7/lib2to3/tests/test_fixers.py", line 33, in _check
    self.assertEqual(after, unicode(tree))
AssertionError: u'\nclass decorated(object):\n    pass\ndecorated = decor(decorated)\n\n' != u'\nclass decorated(object):\n    pass\ndecorated = decor(decorated)\n'
  
  class decorated(object):
      pass
  decorated = decor(decorated)
- 


======================================================================
FAIL: test_chained (lib3to2.tests.test_classdecorator.Test_classdecorator)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib3to2/tests/test_classdecorator.py", line 50, in test_chained
    self.check(b, a)
  File "/usr/lib64/python2.7/lib2to3/tests/test_fixers.py", line 37, in check
    tree = self._check(before, after)
  File "/usr/lib64/python2.7/lib2to3/tests/test_fixers.py", line 33, in _check
    self.assertEqual(after, unicode(tree))
AssertionError: u'\nclass wow(object):\n   do_cool_stuff_here()\nwow = f1(f2(f3(wow)))\n\n' != u'\nclass wow(object):\n   do_cool_stuff_here()\nwow = f1(f2(f3(wow)))\n'
  
  class wow(object):
     do_cool_stuff_here()
  wow = f1(f2(f3(wow)))
- 


======================================================================
FAIL: test_dots_and_parens (lib3to2.tests.test_classdecorator.Test_classdecorator)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib3to2/tests/test_classdecorator.py", line 66, in test_dots_and_parens
    self.check(b, a)
  File "/usr/lib64/python2.7/lib2to3/tests/test_fixers.py", line 37, in check
    tree = self._check(before, after)
  File "/usr/lib64/python2.7/lib2to3/tests/test_fixers.py", line 33, in _check
    self.assertEqual(after, unicode(tree))
AssertionError: u'\nclass awesome(object):\n    inconsequential_stuff()\nawesome = should_work.w [truncated]... != u'\nclass awesome(object):\n    inconsequential_stuff()\nawesome = should_work.w [truncated]...
  
  class awesome(object):
      inconsequential_stuff()
  awesome = should_work.with_dots(and_parens)(dotted.name(with_args(in_parens)(awesome)))
- 


----------------------------------------------------------------------
Ran 208 tests in 7.666s

FAILED (failures=3)
Comment 1 Patrice Clement gentoo-dev 2016-03-08 11:49:58 UTC
I've just stabilised 3to2-1.1.1.ebuild which doesn't suffer from this problem. Closing this bug.