Skip to content

Commit

Permalink
Clean up after the cwd tests
Browse files Browse the repository at this point in the history
Lack of this breaks the cprofile test.  (Unless bin/test does the
chdir/abspath combination to work around this.)
  • Loading branch information
mgedmin committed Jun 4, 2013
1 parent 3709e07 commit 05c36fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/zope/testrunner/tests/testrunner-layers-cwd.txt
Expand Up @@ -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)
Expand All @@ -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)

0 comments on commit 05c36fc

Please sign in to comment.