diff options
Diffstat (limited to 'pexpect/tests/test_filedescriptor.py')
-rwxr-xr-x | pexpect/tests/test_filedescriptor.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/pexpect/tests/test_filedescriptor.py b/pexpect/tests/test_filedescriptor.py index 205d898..5509dc9 100755 --- a/pexpect/tests/test_filedescriptor.py +++ b/pexpect/tests/test_filedescriptor.py @@ -1,17 +1,11 @@ #!/usr/bin/env python import pexpect import unittest +import PexpectTestCase import sys import os -class ExpectTestCase(unittest.TestCase): - def setUp(self): - self.original_path = os.getcwd() - newpath = os.path.join (os.environ['PROJECT_PEXPECT_HOME'], 'tests') - os.chdir (newpath) - def tearDown(self): - os.chdir (self.original_path) - +class ExpectTestCase(PexpectTestCase.PexpectTestCase): def test_fd (self): fd = os.open ('TESTDATA.txt', os.O_RDONLY) s = pexpect.spawn (fd) |