mirror of
https://github.com/python/cpython.git
synced 2025-08-15 22:30:42 +00:00
Issue #5472: Fixed distutils.test_util tear down
This commit is contained in:
parent
6c4cff0f32
commit
61585c260c
2 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,8 @@ class utilTestCase(unittest.TestCase):
|
|||
os.path.splitdrive = self.splitdrive
|
||||
if self.uname is not None:
|
||||
os.uname = self.uname
|
||||
else:
|
||||
del os.uname
|
||||
|
||||
def _set_uname(self, uname):
|
||||
self._uname = uname
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue