Issue #12125: fixed the failures under Solaris due to improper test cleanup.

This commit is contained in:
Tarek Ziade 2011-05-23 19:07:56 +02:00
parent fabc30833f
commit e1177d9d17
4 changed files with 16 additions and 1 deletions

View file

@ -31,11 +31,11 @@ class CreateTestCase(support.TempdirManager,
'doc': sys.prefix + '/share/doc/pyxfoil', }
def tearDown(self):
super(CreateTestCase, self).tearDown()
sys.stdin = self._stdin
sys.stdout = self._stdout
os.chdir(self._cwd)
sysconfig.get_paths = self._old_get_paths
super(CreateTestCase, self).tearDown()
def test_ask_yn(self):
sys.stdin.write('y\n')