Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160143 - app-portage/layman-1.0.9 fails doc tests
Summary: app-portage/layman-1.0.9 fails doc tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gunnar Wrobel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-04 18:36 UTC by Carsten Lohrke (RETIRED)
Modified: 2007-01-10 08:21 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2007-01-04 18:36:50 UTC
.
.
.
File "/var/tmp/portage/app-portage/layman-1.0.9/work/layman-1.0.9/layman/db.py", line 242, in layman.db.RemoteDB.cache
Failed example:
    b.close()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest layman.db.RemoteDB.cache[7]>", line 1, in ?
        b.close()
    NameError: name 'b' is not defined
----------------------------------------------------------------------
File "/var/tmp/portage/app-portage/layman-1.0.9/work/layman-1.0.9/layman/db.py", line 243, in layman.db.RemoteDB.cache
Failed example:
    os.unlink(a.path(config['overlays']))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest layman.db.RemoteDB.cache[8]>", line 1, in ?
        os.unlink(a.path(config['overlays']))
    NameError: name 'a' is not defined
----------------------------------------------------------------------
File "/var/tmp/portage/app-portage/layman-1.0.9/work/layman-1.0.9/layman/db.py", line 245, in layman.db.RemoteDB.cache
Failed example:
    a.overlays.keys()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest layman.db.RemoteDB.cache[9]>", line 1, in ?
        a.overlays.keys()
    NameError: name 'a' is not defined


======================================================================
FAIL: Doctest: layman.overlays.tar.TarOverlay
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/doctest.py", line 2152, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for layman.overlays.tar.TarOverlay
  File "/var/tmp/portage/app-portage/layman-1.0.9/work/layman-1.0.9/layman/overlays/tar.py", line 38, in TarOverlay

----------------------------------------------------------------------
File "/var/tmp/portage/app-portage/layman-1.0.9/work/layman-1.0.9/layman/overlays/tar.py", line 56, in layman.overlays.tar.TarOverlay
Failed example:
    a.add(testdir) #doctest: +ELLIPSIS
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest layman.overlays.tar.TarOverlay[6]>", line 1, in ?
        a.add(testdir) #doctest: +ELLIPSIS
      File "/var/tmp/portage/app-portage/layman-1.0.9/work/layman-1.0.9/layman/overlays/tar.py", line 140, in add
        result = self.cmd(self.binary + ' -v -x ' + opt + ' -f "' + pkg
      File "/var/tmp/portage/app-portage/layman-1.0.9/work/layman-1.0.9/layman/overlays/overlay.py", line 150, in cmd
        if not self.quiet:
    AttributeError: DummyTar instance has no attribute 'quiet'
----------------------------------------------------------------------
File "/var/tmp/portage/app-portage/layman-1.0.9/work/layman-1.0.9/layman/overlays/tar.py", line 58, in layman.overlays.tar.TarOverlay
Failed example:
    sorted(os.listdir(testdir + '/dummy'))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest layman.overlays.tar.TarOverlay[7]>", line 1, in ?
        sorted(os.listdir(testdir + '/dummy'))
    OSError: [Errno 2] No such file or directory: '/tmp/fileXPcv6W/dummy'


----------------------------------------------------------------------
Ran 23 tests in 0.560s

FAILED (failures=12)
Comment 1 Gunnar Wrobel (RETIRED) gentoo-dev 2007-01-05 00:31:43 UTC
Sorry, I got lazy :) Will be fixed in the next release. Thanks for the report!
Comment 2 Gunnar Wrobel (RETIRED) gentoo-dev 2007-01-10 08:21:33 UTC
Fixed in layman-1.0.10