summaryrefslogtreecommitdiff
path: root/tests/PexpectTestCase.py
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2014-06-01 22:33:48 -0700
committerThomas Kluyver <takowl@gmail.com>2014-06-01 22:33:48 -0700
commit1def9a9f69c0e2c6105fd22f667bf8ff80e56ef6 (patch)
tree7286a6a822b10d5914b28505edfedb4165983e98 /tests/PexpectTestCase.py
parentf284c1344dc0183c8e03f8adf975adfa213b82c3 (diff)
downloadpexpect-1def9a9f69c0e2c6105fd22f667bf8ff80e56ef6.tar.gz
Allow subprocess tests to import pexpect
Diffstat (limited to 'tests/PexpectTestCase.py')
-rw-r--r--tests/PexpectTestCase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PexpectTestCase.py b/tests/PexpectTestCase.py
index aa80aec..7ec7e53 100644
--- a/tests/PexpectTestCase.py
+++ b/tests/PexpectTestCase.py
@@ -29,7 +29,7 @@ class PexpectTestCase(unittest.TestCase):
self.PYTHONBIN = sys.executable
self.original_path = os.getcwd()
tests_dir = os.path.dirname(__file__)
- project_dir = os.path.dirname(tests_dir)
+ self.project_dir = project_dir = os.path.dirname(tests_dir)
os.chdir(tests_dir)
os.environ['COVERAGE_PROCESS_START'] = os.path.join(project_dir, '.coveragerc')
os.environ['COVERAGE_FILE'] = os.path.join(project_dir, '.coverage')