diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_cmdline.py | 26 | ||||
-rw-r--r-- | test/test_process.py | 2 |
2 files changed, 14 insertions, 14 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") diff --git a/test/test_process.py b/test/test_process.py index 8a47bfc7..917abc70 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -275,7 +275,7 @@ class ProcessTest(CoverageTest): Coverage.py warning: Module quux was never imported. Coverage.py warning: No data was collected. """) in out) - + def test_warnings_if_never_run(self): out = self.run_command("coverage run i_dont_exist.py") self.assertTrue("No file to run: 'i_dont_exist.py'" in out) |