summaryrefslogtreecommitdiff
path: root/test/test_cmdline.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-02-12 23:07:31 -0500
committerNed Batchelder <ned@nedbatchelder.com>2011-02-12 23:07:31 -0500
commit12c3dd51679344f4173e82552af7515db46453ee (patch)
tree630a36f7091bcf3d5c90b196b15f20ac375f7dea /test/test_cmdline.py
parent2419ccf5218042b6caf9e972873d4815490c2690 (diff)
downloadpython-coveragepy-git-12c3dd51679344f4173e82552af7515db46453ee.tar.gz
A different (better) way to avoid warnings when no code has been run.
Diffstat (limited to 'test/test_cmdline.py')
-rw-r--r--test/test_cmdline.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py
index f0f9d22f..d4cc763d 100644
--- a/test/test_cmdline.py
+++ b/test/test_cmdline.py
@@ -111,7 +111,7 @@ class ClassicCmdLineTest(CmdLineTest):
.load()
.start()
.run_python_file('foo.py', ['foo.py'])
- .stop(False)
+ .stop()
.save()
""")
# -e -x calls coverage.erase first.
@@ -120,7 +120,7 @@ class ClassicCmdLineTest(CmdLineTest):
.erase()
.start()
.run_python_file('foo.py', ['foo.py'])
- .stop(False)
+ .stop()
.save()
""")
# --timid sets a flag, and program arguments get passed through.
@@ -129,7 +129,7 @@ class ClassicCmdLineTest(CmdLineTest):
.load()
.start()
.run_python_file('foo.py', ['foo.py', 'abc', '123'])
- .stop(False)
+ .stop()
.save()
""")
# -L sets a flag, and flags for the program don't confuse us.
@@ -138,7 +138,7 @@ class ClassicCmdLineTest(CmdLineTest):
.load()
.start()
.run_python_file('foo.py', ['foo.py', '-a', '-b'])
- .stop(False)
+ .stop()
.save()
""")
@@ -470,7 +470,7 @@ class NewCmdLineTest(CmdLineTest):
.erase()
.start()
.run_python_file('foo.py', ['foo.py'])
- .stop(False)
+ .stop()
.save()
""")
self.cmd_executes("run --rcfile=myrc.rc foo.py", """\
@@ -478,7 +478,7 @@ class NewCmdLineTest(CmdLineTest):
.erase()
.start()
.run_python_file('foo.py', ['foo.py'])
- .stop(False)
+ .stop()
.save()
""")
self.cmd_executes("run --include=pre1,pre2 foo.py", """\
@@ -486,7 +486,7 @@ class NewCmdLineTest(CmdLineTest):
.erase()
.start()
.run_python_file('foo.py', ['foo.py'])
- .stop(False)
+ .stop()
.save()
""")
self.cmd_executes("run --omit=opre1,opre2 foo.py", """\
@@ -494,7 +494,7 @@ class NewCmdLineTest(CmdLineTest):
.erase()
.start()
.run_python_file('foo.py', ['foo.py'])
- .stop(False)
+ .stop()
.save()
""")
self.cmd_executes("run --include=pre1,pre2 --omit=opre1,opre2 foo.py",
@@ -506,7 +506,7 @@ class NewCmdLineTest(CmdLineTest):
.erase()
.start()
.run_python_file('foo.py', ['foo.py'])
- .stop(False)
+ .stop()
.save()
""")
self.cmd_executes("run --source=quux,hi.there,/home/bar foo.py",
@@ -518,7 +518,7 @@ class NewCmdLineTest(CmdLineTest):
.erase()
.start()
.run_python_file('foo.py', ['foo.py'])
- .stop(False)
+ .stop()
.save()
""")
@@ -528,7 +528,7 @@ class NewCmdLineTest(CmdLineTest):
.erase()
.start()
.run_python_module('mymodule', ['mymodule'])
- .stop(False)
+ .stop()
.save()
""")
self.cmd_executes("run -m mymodule -qq arg1 arg2", """\
@@ -536,7 +536,7 @@ class NewCmdLineTest(CmdLineTest):
.erase()
.start()
.run_python_module('mymodule', ['mymodule', '-qq', 'arg1', 'arg2'])
- .stop(False)
+ .stop()
.save()
""")
self.cmd_executes("run --branch -m mymodule", """\
@@ -544,7 +544,7 @@ class NewCmdLineTest(CmdLineTest):
.erase()
.start()
.run_python_module('mymodule', ['mymodule'])
- .stop(False)
+ .stop()
.save()
""")
self.cmd_executes_same("run -m mymodule", "run --module mymodule")