]> granicus.if.org Git - python/commit
Issue #12333: restore the previous dir before removing the current directory
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 17 Jun 2011 10:20:46 +0000 (12:20 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 17 Jun 2011 10:20:46 +0000 (12:20 +0200)
commitac6602bdc17973c121ea6cce9ae6768a9e5db8c3
tree25ceaadd46f79621d7528e86d35754e85db71792
parentac05945346723b96bbe3c5c4bb6e7905aa64b1fd
Issue #12333: restore the previous dir before removing the current directory

packaging.tests.support.TempdirManager: removing the current directory is not
allowed on Windows or Solaris. Store the current directory and restore it
before removing the temporary directory (which is used as the working directory
during the tests).
Lib/packaging/tests/support.py