Message141152
Your tests contain this:
+ sys.path.append(source)
When using regrtest (see http://docs.python.org/devguide/runtests#running), you’ll get a warning that test_packaging altered sys.path. Your code should make sure sys.path is restored to its previous test:
+ self.addCleanup(sys.path.remove, source)
sys.path.append(source)
See the unittest.TestCase doc for more about addCleanup and tearDown. |
|
Date |
User |
Action |
Args |
2011-07-26 12:38:02 | eric.araujo | set | recipients:
+ eric.araujo, mhammond, fdrake, vinay.sajip, ceder, tim.golden, tarek, alexis, higery |
2011-07-26 12:38:02 | eric.araujo | set | messageid: <1311683882.42.0.546856722781.issue12394@psf.upfronthosting.co.za> |
2011-07-26 12:38:01 | eric.araujo | link | issue12394 messages |
2011-07-26 12:38:01 | eric.araujo | create | |
|