This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients alexis, eric.araujo, flox, francismb, higery, jlove, nadeem.vawda, paul.moore, pitrou, tarek, vinay.sajip, westley.martinez
Date 2011-11-05.12:39:54
SpamBayes Score 3.109093e-10
Marked as misclassified No
Message-id <1320496795.02.0.196100740814.issue13193@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-11-05 12:39:55vinay.sajipsetrecipients: + vinay.sajip, paul.moore, pitrou, nadeem.vawda, tarek, eric.araujo, flox, alexis, westley.martinez, jlove, higery, francismb
2011-11-05 12:39:55vinay.sajipsetmessageid: <1320496795.02.0.196100740814.issue13193@psf.upfronthosting.co.za>
2011-11-05 12:39:54vinay.sajiplinkissue13193 messages
2011-11-05 12:39:54vinay.sajipcreate