Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1808384 - python-linecache2: FTBFS in Fedora rawhide: No module named 'unittest2'
Summary: python-linecache2: FTBFS in Fedora rawhide: No module named 'unittest2'
Alias: None
Product: Fedora
Classification: Fedora
Component: python-linecache2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PYTHON39 1794222 F33FTBFS
TreeView+ depends on / blocked
Reported: 2020-02-28 11:21 UTC by Miro Hrončok
Modified: 2020-02-28 11:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2020-02-28 11:25:08 UTC
Type: Bug

Attachments (Terms of Use)

Description Miro Hrončok 2020-02-28 11:21:08 UTC
Description of problem:
Package python-linecache2 fails to build from source in Fedora rawhide.

+ /usr/bin/python3 -m unittest -v
linecache2.tests.test_linecache (unittest.loader._FailedTest) ... ERROR
ERROR: linecache2.tests.test_linecache (unittest.loader._FailedTest)
ImportError: Failed to import test module: linecache2.tests.test_linecache
Traceback (most recent call last):
  File "/usr/lib/python3.8/unittest/", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.8/unittest/", line 377, in _get_module_from_name
  File "/builddir/build/BUILD/linecache2-1.0.0/linecache2/tests/", line 4, in <module>
    import unittest2 as unittest
ModuleNotFoundError: No module named 'unittest2'

In commit the dependency on unittest2 was removed, but it was pulled into the buildroot anyway, transitively. The package needs to be patched to import unittest instead of unittest2.

Version-Release number of selected component (if applicable):

Steps to Reproduce:
koji build --scratch f33 python-linecache2-1.0.0-26.fc32.src.rpm

Additional info:
This package is tracked by Koschei. See:

This also blocks the Python 3.9 rebuild.

Comment 1 Miro Hrončok 2020-02-28 11:25:08 UTC
Pushed to master and f32.

Comment 2 Miro Hrončok 2020-02-28 11:26:30 UTC
As as side note, nothing requires python3-linecache2 in Fedora. I suppose we could also retire it.

Note You need to log in before you can comment on or make changes to this bug.