Message147082
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. |
|
Date |
User |
Action |
Args |
2011-11-05 12:39:55 | vinay.sajip | set | recipients:
+ vinay.sajip, paul.moore, pitrou, nadeem.vawda, tarek, eric.araujo, flox, alexis, westley.martinez, jlove, higery, francismb |
2011-11-05 12:39:55 | vinay.sajip | set | messageid: <1320496795.02.0.196100740814.issue13193@psf.upfronthosting.co.za> |
2011-11-05 12:39:54 | vinay.sajip | link | issue13193 messages |
2011-11-05 12:39:54 | vinay.sajip | create | |
|