summaryrefslogtreecommitdiff
path: root/functional_tests/test_withid_failures.rst
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2009-04-21 01:56:50 +0000
committerJason Pellerin <jpellerin@gmail.com>2009-04-21 01:56:50 +0000
commitc8d0b3049f0f343513ed4169e9d5362b294417ac (patch)
tree8497f406ca6a947250aca422f7427cfb57173244 /functional_tests/test_withid_failures.rst
parent283114a85607dade230eca519081c20cc5710832 (diff)
downloadnose-c8d0b3049f0f343513ed4169e9d5362b294417ac.tar.gz
Made test repeatable
Diffstat (limited to 'functional_tests/test_withid_failures.rst')
-rw-r--r--functional_tests/test_withid_failures.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/functional_tests/test_withid_failures.rst b/functional_tests/test_withid_failures.rst
index 0f9b94c..9a42190 100644
--- a/functional_tests/test_withid_failures.rst
+++ b/functional_tests/test_withid_failures.rst
@@ -1,8 +1,10 @@
>>> import os
>>> from nose.plugins.plugintest import run_buffered as run
>>> from nose.plugins.testid import TestId
+ >>> import tempfile
+ >>> idfile = tempfile.mktemp()
>>> support = os.path.join(os.path.dirname(__file__), 'support', 'id_fails')
- >>> argv = [__file__, '-v', '--with-id', support]
+ >>> argv = [__file__, '-v', '--with-id', '--id-file', idfile, support]
>>> run(argv=argv, plugins=[TestId()])
#1 Failure: ImportError (No module named apackagethatdoesntexist) ... ERROR
#2 test_b.test ... ok