Mystery glitch in new pythonpath system under Python 2.6 in testsuite
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Undecided
|
William Grant |
Bug Description
I'm seeing weird behaviour from the testsuite when running under Python 2.6. Reproduce as follows:
bzr branch lp:~launchpad-committers/launchpad/python2.6
make check VERBOSITY=
Now run just the unit tests:
bin/test -vv -u
The following tests fail:
make_
test_script (lp.translation
lib/
The first is unrelated, the other two are failing due to RuntimeError: The wrong site.py is imported. Scripts should usually be started with Launchpad's bin/py, or with a Python invoked with the -S flag.
Now here's the really weird bit. Run exactly the same test run, but omit test_all_scripts:
bin/test -vv -u -t '!test_all_scripts'
When you do this, the two tests mentioned no longer fail. (Nor do they fail if run individually.)
Changed in launchpad-foundations: | |
milestone: | none → 10.04 |
Changed in launchpad-foundations: | |
status: | Fix Committed → Fix Released |
( foundations IRC conversation:
-t!test_ all_scripts` . I don't expect you'll have a magical solution, but I thought I'd mention it nonetheless
This bug was filed out of a #launchpad-
14:15 < maxb> gary_poster: Hello. I have a buildoutish conundrum for you :-) Under python 2.6, a couple of rosetta scripts throw the "bin/py or -S" RuntimeError during a `bin/test -u` but NOT if run individually or as `bin/test -u
14:19 < gary_poster> maxb, hm. I probably can tweak it one way or another. Would you mind making a foundations bug with the details for me?
14:20 < maxb> sure
)