From 05c36fc65e27945af1fc6e3666e5da33c757a6f4 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Tue, 4 Jun 2013 18:17:01 +0300 Subject: [PATCH] Clean up after the cwd tests Lack of this breaks the cprofile test. (Unless bin/test does the chdir/abspath combination to work around this.) --- src/zope/testrunner/tests/testrunner-layers-cwd.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/zope/testrunner/tests/testrunner-layers-cwd.txt b/src/zope/testrunner/tests/testrunner-layers-cwd.txt index 9760930..00aef8b 100644 --- a/src/zope/testrunner/tests/testrunner-layers-cwd.txt +++ b/src/zope/testrunner/tests/testrunner-layers-cwd.txt @@ -9,6 +9,8 @@ invocation might fail. ... '--tests-pattern', '^cwdtests?$', ... ] + >>> orig_cwd = os.getcwd() + >>> sys.argv = [os.path.relpath(testrunner_script), '-j2'] >>> from zope import testrunner >>> testrunner.run_internal(defaults) @@ -25,3 +27,4 @@ invocation might fail. Total: 2 tests, 0 failures, 0 errors and 0 skipped in 0.162 seconds. False + >>> os.chdir(orig_cwd)