[Python-checkins] cpython (3.2): Fix broken test and replace redundant generator with a tuple
Nick Coghlan
ncoghlan at gmail.com
Sat Oct 20 04:11:01 CEST 2012
On Sat, Oct 20, 2012 at 12:55 AM, Trent Nelson <trent at snakebite.org> wrote:
> I think this broke all the buildbots :-)
>
> ======================================================================
> ERROR: test_rewrite_pyc_with_read_only_source (test.test_import.ImportTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/home/buildbot/python-clang/3.2.koobs-freebsd-clang/build/Lib/test/test_import.py", line 163, in test_rewrite_pyc_with_read_only_source
> m3 = __import__(TESTFN)
> ImportError: No module named @test_66613_tmp
Those failures were due to the previous commit (the one this commit
fixed) - I had failed to account for __pycache__ when forward porting
the test from 2.7 to 3.2.
This bug was a bit of a pain, because it turned out that 2.7, 3.2 and
3.3+ all needed different code to fix and test it, even though it was
only a 1-line fix to ensure the user had write permissions on the
cached bytecode files they created :)
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-checkins
mailing list