upgrade nose to 0.11.3 to fix python 2.7 compatibility

Bug #691341 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mako (Ubuntu)
Fix Released
Undecided
Unassigned
Natty
Fix Released
Undecided
Unassigned
nose (Ubuntu)
Fix Released
High
Unassigned
Natty
Fix Released
High
Unassigned

Bug Description

python2.7 setup.py test --quiet
running test
running egg_info
writing requirements to Mako.egg-info/requires.txt
writing Mako.egg-info/PKG-INFO
writing top-level names to Mako.egg-info/top_level.txt
writing dependency_links to Mako.egg-info/dependency_links.txt
writing entry points to Mako.egg-info/entry_points.txt
reading manifest file 'Mako.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.jpg' under directory 'doc'
warning: no files found matching '*.sty' under directory 'doc'
warning: no files found matching 'autohandler' under directory 'doc'
warning: no files found matching '*.xml' under directory 'examples'
warning: no files found matching '*.mako' under directory 'examples'
warning: no files found matching '*.dat' under directory 'test'
warning: no files found matching 'ez_setup.py'
writing manifest file 'Mako.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 67, in <module>
    **extra
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 137, in run
    self.with_project_on_sys_path(self.run_tests)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 117, in with_project_on_sys_path
    func()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 146, in run_tests
    testLoader = loader_class()
  File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__
    self.runTests()
  File "/usr/lib/python2.7/unittest/main.py", line 229, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/lib/python2.7/unittest/runner.py", line 151, in run
    test(result)
  File "/usr/lib/python2.7/unittest/suite.py", line 65, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.7/unittest/suite.py", line 92, in run
    if _isnotsuite(test):
  File "/usr/lib/python2.7/unittest/suite.py", line 276, in _isnotsuite
    iter(test)
  File "/usr/lib/python2.7/unittest/suite.py", line 33, in __iter__
    return iter(self._tests)
AttributeError: 'FinalizingSuiteWrapper' object has no attribute '_tests'
make: *** [test-python2.7] Error 1

Tags: python27

Related branches

Matthias Klose (doko)
Changed in mako (Ubuntu):
importance: Undecided → High
milestone: none → natty-alpha-2
status: New → Confirmed
Barry Warsaw (barry)
Changed in mako (Ubuntu Natty):
assignee: nobody → Barry Warsaw (barry)
status: Confirmed → In Progress
Revision history for this message
Barry Warsaw (barry) wrote :

This is really caused by a bug in nose. I'm about to merge in a new upstream release 0.11.3 which should fix the problem.

affects: mako (Ubuntu Natty) → nose (Ubuntu Natty)
Changed in nose (Ubuntu Natty):
assignee: Barry Warsaw (barry) → nobody
summary: - mako fails to run the tests with python2.7
+ upgrade nose to 0.11.3 to fix python 2.7 compatibility
Revision history for this message
Barry Warsaw (barry) wrote :

Once nose 0.11.3 lands, mako will need a rebuild. Matthias, perhaps you can push the button?

Revision history for this message
Matthias Klose (doko) wrote :
Changed in nose (Ubuntu Natty):
status: In Progress → Confirmed
Matthias Klose (doko)
Changed in mako (Ubuntu Natty):
status: New → Confirmed
Revision history for this message
Piotr Ożarowski (piotr) wrote :

not with 1.0.0-1 (in DPMT repo only for now, due to unreleased CDBS)

BTW, 0.11.4 is the first one which works with Python 2.7, not 0.11.3

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nose - 0.11.4-0ubuntu1

---------------
nose (0.11.4-0ubuntu1) natty; urgency=low

  * New upstream release.
    - Made nose compatible with Python 2.7. LP: #691341.
 -- Matthias Klose <email address hidden> Sat, 18 Dec 2010 15:14:40 +0100

Changed in nose (Ubuntu Natty):
status: Confirmed → Fix Released
Revision history for this message
Barry Warsaw (barry) wrote :

0.11.3 fixed the problem I was seeing for me, but yeah, I'm glad we still updated to 0.11.4. Unfortunately I missed that because the cheeseshop is already showing 1.0.0 and this page only goes up to 0.11.3: http://code.google.com/p/python-nose/

In any case, when the new version is published, please push the button to retry the mako build and then close that bugtask.

Changed in mako (Ubuntu Natty):
importance: Undecided → High
milestone: none → natty-alpha-2
assignee: nobody → Matthias Klose (doko)
Revision history for this message
Matthias Klose (doko) wrote :

mako built.

Changed in mako (Ubuntu Natty):
assignee: Matthias Klose (doko) → nobody
importance: High → Undecided
milestone: natty-alpha-2 → none
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.