Commit 008b861b authored by Neal Norwitz's avatar Neal Norwitz

Don't fail if the (sub)pkgname already exist.

parent 05f97bff
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment