Vinay Sajip <[email protected]> added the comment:
I get the opposite failure to Nadeem as far as
InstallDataTestCase.test_resources: it works on Ubuntu 64-bit, but fails on
32-bit. Digging into it a bit further, I find that _generate_cache in
Lib/packaging/database.py returns prematurely in the failing case, because
_cache_generated_egg is True in the failing case but not in the test run which
succeeds. My guess is that this could be due to a missing call to clear_cache()
in the same module, as _cache_generated_egg is set to True only in the last
part of _generate_cache, and my guess is that the value is a holdover from an
earlier test.
If I add the line "packaging.database.clear_cache()" just above "with
packaging.database.get_file('Spamlib', 'spamd') as fp:" then the test succeeds.
----------
nosy: +vinay.sajip
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13193>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com