Message236122
I don’t have a Solaris to test this, but maybe changing the first half of the test to the following would work:
dir = tempfile.TemporaryDirectory()
self.addCleanup(dir.cleanup) # In case removal after chdir() fails
self.addCleanup(os.chdir, os.getcwd())
os.chdir(dir.name)
try:
dir.cleanup()
except OSError as err: # Invalid argument on Solaris
self.skipTest("Couldn't remove current directory: {}".format(err))
with util.import_state(...) |
|
Date |
User |
Action |
Args |
2015-02-17 03:23:11 | martin.panter | set | recipients:
+ martin.panter, brett.cannon, terry.reedy, Arfrever, r.david.murray, python-dev, eric.snow, serhiy.storchaka |
2015-02-17 03:23:11 | martin.panter | set | messageid: <1424143391.91.0.0881524968339.issue22834@psf.upfronthosting.co.za> |
2015-02-17 03:23:11 | martin.panter | link | issue22834 messages |
2015-02-17 03:23:11 | martin.panter | create | |
|