Martin Panter added the comment:
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(...)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue22834>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com