Bug 1331981 - tests: AttributeError: 'RepoStub' object has no attribute 'priority'
Summary: tests: AttributeError: 'RepoStub' object has no attribute 'priority'
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-30 23:21 UTC by Igor Gnatenko
Modified: 2016-05-02 10:01 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-02 10:01:19 UTC
Type: Bug


Attachments (Terms of Use)

Description Igor Gnatenko 2016-04-30 23:21:32 UTC
======================================================================
ERROR: test_enable_debuginfo_repos (tests.test_download.DownloadCommandTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/dnf-plugins-core-0.1.20_1-5g10a1d11/tests/test_download.py", line 282, in test_enable_debuginfo_repos
    dnfpluginscore.lib.enable_debug_repos(repos)
  File "/builddir/build/BUILD/dnf-plugins-core-0.1.20_1-5g10a1d11/plugins/dnfpluginscore/lib.py", line 146, in enable_debug_repos
    _enable_sub_repos(repos, debug_name)
  File "/builddir/build/BUILD/dnf-plugins-core-0.1.20_1-5g10a1d11/plugins/dnfpluginscore/lib.py", line 122, in _enable_sub_repos
    for repo in repos.iter_enabled():
  File "/usr/lib/python2.7/site-packages/dnf/repodict.py", line 62, in iter_enabled
    return (r for r in self.values() if r.enabled)
  File "/usr/lib/python2.7/site-packages/dnf/repodict.py", line 77, in values
    return (v for k, v in self.items())
  File "/usr/lib/python2.7/site-packages/dnf/repodict.py", line 68, in items
    key=lambda x: (x[1].priority, x[1].cost)))
  File "/usr/lib/python2.7/site-packages/dnf/repodict.py", line 68, in <lambda>
    key=lambda x: (x[1].priority, x[1].cost)))
AttributeError: 'RepoStub' object has no attribute 'priority'
======================================================================
ERROR: test_enable_source_repos (tests.test_download.DownloadCommandTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/dnf-plugins-core-0.1.20_1-5g10a1d11/tests/test_download.py", line 273, in test_enable_source_repos
    dnfpluginscore.lib.enable_source_repos(repos)
  File "/builddir/build/BUILD/dnf-plugins-core-0.1.20_1-5g10a1d11/plugins/dnfpluginscore/lib.py", line 136, in enable_source_repos
    _enable_sub_repos(repos, source_name)
  File "/builddir/build/BUILD/dnf-plugins-core-0.1.20_1-5g10a1d11/plugins/dnfpluginscore/lib.py", line 122, in _enable_sub_repos
    for repo in repos.iter_enabled():
  File "/usr/lib/python2.7/site-packages/dnf/repodict.py", line 62, in iter_enabled
    return (r for r in self.values() if r.enabled)
  File "/usr/lib/python2.7/site-packages/dnf/repodict.py", line 77, in values
    return (v for k, v in self.items())
  File "/usr/lib/python2.7/site-packages/dnf/repodict.py", line 68, in items
    key=lambda x: (x[1].priority, x[1].cost)))
  File "/usr/lib/python2.7/site-packages/dnf/repodict.py", line 68, in <lambda>
    key=lambda x: (x[1].priority, x[1].cost)))
AttributeError: 'RepoStub' object has no attribute 'priority'
----------------------------------------------------------------------


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