Author martin.panter
Recipients Arfrever, brett.cannon, eric.snow, martin.panter, python-dev, r.david.murray, serhiy.storchaka, terry.reedy
Date 2015-02-17.03:23:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424143391.91.0.0881524968339.issue22834@psf.upfronthosting.co.za>
In-reply-to
Content
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(...)
History
Date User Action Args
2015-02-17 03:23:11martin.pantersetrecipients: + martin.panter, brett.cannon, terry.reedy, Arfrever, r.david.murray, python-dev, eric.snow, serhiy.storchaka
2015-02-17 03:23:11martin.pantersetmessageid: <1424143391.91.0.0881524968339.issue22834@psf.upfronthosting.co.za>
2015-02-17 03:23:11martin.panterlinkissue22834 messages
2015-02-17 03:23:11martin.pantercreate