summaryrefslogtreecommitdiff
path: root/Lib/test/test_trace.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-26 03:45:29 +0100
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-26 03:45:29 +0100
commitbd885cf8bc59f7621b62029065a7bbfe7ab3b9fc (patch)
treeb4509ec6075d931aee2e92e6affe2a16eb578287 /Lib/test/test_trace.py
parenta124eb0185543ea02b835a6a41f5128c0a2943f5 (diff)
downloadcpython-bd885cf8bc59f7621b62029065a7bbfe7ab3b9fc.tar.gz
Implemented PEP 405 (Python virtual environments).
Diffstat (limited to 'Lib/test/test_trace.py')
-rw-r--r--Lib/test/test_trace.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py
index fa0d48ca6d..ac3a1a30da 100644
--- a/Lib/test/test_trace.py
+++ b/Lib/test/test_trace.py
@@ -316,8 +316,8 @@ class TestCoverage(unittest.TestCase):
# Ignore all files, nothing should be traced nor printed
libpath = os.path.normpath(os.path.dirname(os.__file__))
# sys.prefix does not work when running from a checkout
- tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix, libpath],
- trace=0, count=1)
+ tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,
+ libpath], trace=0, count=1)
with captured_stdout() as stdout:
self._coverage(tracer)
if os.path.exists(TESTFN):