diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-30 07:21:10 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-30 07:21:10 (GMT) |
commit | 008b861bf03f515b19ced29b1138a7c9fc910d82 (patch) | |
tree | a9d78654274b1c19fa0d247e0f84fd1f608b4dd3 | |
parent | 05f97bffac5ae9ded29c5f845dff5edc99ff1620 (diff) | |
download | cpython-008b861bf03f515b19ced29b1138a7c9fc910d82.zip cpython-008b861bf03f515b19ced29b1138a7c9fc910d82.tar.gz cpython-008b861bf03f515b19ced29b1138a7c9fc910d82.tar.bz2 |
Don't fail if the (sub)pkgname already exist.
-rw-r--r-- | Lib/test/test_repr.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_repr.py b/Lib/test/test_repr.py index 4ded484..a37499f 100644 --- a/Lib/test/test_repr.py +++ b/Lib/test/test_repr.py @@ -5,6 +5,7 @@ import sys import os +import shutil import unittest from test.test_support import run_unittest @@ -198,8 +199,10 @@ class LongReprTest(unittest.TestCase): self.pkgname = os.path.join(longname) self.subpkgname = os.path.join(longname, longname) # Make the package and subpackage + shutil.rmtree(self.pkgname, ignore_errors=True) os.mkdir(self.pkgname) touch(os.path.join(self.pkgname, '__init__'+os.extsep+'py')) + shutil.rmtree(self.subpkgname, ignore_errors=True) os.mkdir(self.subpkgname) touch(os.path.join(self.subpkgname, '__init__'+os.extsep+'py')) # Remember where we are |