[issue2439] Patch to add a get_data function to pkgutil

Phillip J. Eby report at bugs.python.org
Fri Mar 21 16:04:55 CET 2008


Phillip J. Eby <pje at telecommunity.com> added the comment:

But I'm getting a failure on that test, and the other one, too:

$ ./python Lib/test/test_pkgutil.py
test_alreadyloaded (__main__.PkgutilTests) ... FAIL
test_getdata_filesys (__main__.PkgutilTests) ... FAIL
test_getdata_pep302 (__main__.PkgutilTests) ... ok

======================================================================
FAIL: test_alreadyloaded (__main__.PkgutilTests)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "Lib/test/test_pkgutil.py", line 45, in test_alreadyloaded
     self.assertEqual(foo.loads, 1)
AssertionError: 2 != 1

======================================================================
FAIL: test_getdata_filesys (__main__.PkgutilTests)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "Lib/test/test_pkgutil.py", line 30, in test_getdata_filesys
     self.assert_('PkgutilTests' in this_file)
AssertionError

----------------------------------------------------------------------
Ran 3 tests in 0.017s

FAILED (failures=2)

I'm rebuilding my entire 2.6 checkout to double-check there's not 
something else going on, but I know my Lib/ tree is up-to-date.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2439>
__________________________________


More information about the Python-bugs-list mailing list