Sync request of python-traceback2 1.4.0-3 from Debian testing: FTBFS due to failing unit tests

Bug #1503311 reported by Łukasz Zemczak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-traceback2 (Debian)
Fix Released
Unknown
python-traceback2 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

From the test-rebuild in wily [1], the package fails to build from source. This is fixed in Debian by not running the unit tests at all - a sync would be perfect.

Source package name: python-traceback2
Source package version: 1.4.0-3
Where to sync from: Debian testing

All Ubuntu changes have been incorporated into the Debian version. The only change is the disablement of tests during build.

Log:

+ PYTHON=python2.7 python2-unit2
Traceback (most recent call last):
  File "/usr/bin/python2-unit2", line 9, in <module>
    load_entry_point('unittest2==1.1.0', 'console_scripts', 'unit2')()
  File "/usr/lib/python2.7/dist-packages/unittest2/__main__.py", line 18, in main_
    main(module=None)
  File "/usr/lib/python2.7/dist-packages/unittest2/main.py", line 89, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.7/dist-packages/unittest2/main.py", line 119, in parseArgs
    self._do_discovery([])
  File "/usr/lib/python2.7/dist-packages/unittest2/main.py", line 223, in _do_discovery
    self.test = loader.discover(self.start, self.pattern, self.top)
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 367, in discover
    tests = list(self._find_tests(start_dir, pattern))
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 433, in _find_tests
    for test in path_tests:
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 433, in _find_tests
    for test in path_tests:
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 424, in _find_tests
    full_path, pattern, namespace)
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 479, in _find_test_path
    msg % (mod_name, module_dir, expected_dir))
ImportError: 'test_traceback' module incorrectly imported from '/usr/lib/python2.7/dist-packages/traceback2/tests'. Expected '/«PKGBUILDDIR»/traceback2/tests'. Is this module globally installed?
debian/rules:35: recipe for target 'override_dh_auto_test' failed

[1] http://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-rebuild-20151001-wily.html

Tags: ftbfs
Changed in python-traceback2 (Debian):
status: Unknown → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Actually, we can simply do a debian sync here since all ubuntu changes are now incorporated into Debian. On it now.

summary: - FTBFS due to failing unit tests
+ Sync request of python-traceback2: FTBFS due to failing unit tests
description: updated
summary: - Sync request of python-traceback2: FTBFS due to failing unit tests
+ Sync request of python-traceback2 1.4.0-3 from Debian testing: FTBFS due
+ to failing unit tests
Changed in python-traceback2 (Ubuntu):
assignee: Łukasz Zemczak (sil2100) → nobody
status: In Progress → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

synced

Changed in python-traceback2 (Ubuntu):
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.