diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-31 10:10:47 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-31 10:10:47 -0500 |
commit | d02be78c3a0ee3022be56c623bb9bdcad1e9acd4 (patch) | |
tree | 1e74153bb4741f6a9e2f1e1f55d2b9960a490bb3 /tests/test_cmdline.py | |
parent | a035bde3320a501720ae722dc6b54fe7ff5c8647 (diff) | |
download | python-coveragepy-git-nedbat/unittest2pytest.tar.gz |
style: fix long lines and avoid backslashesnedbat/unittest2pytest
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r-- | tests/test_cmdline.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 2c24c598..a0744452 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -544,10 +544,9 @@ class CmdLineTest(BaseCmdLineTest): # runs, since they won't make it to the subprocesses. You need to use a # config file. self.command_line("run --concurrency=multiprocessing --branch foo.py", ret=ERR) - assert "Options affecting multiprocessing must only be specified in a configuration file." in \ - self.stderr() - assert "Remove --branch from the command line." in \ - self.stderr() + msg = "Options affecting multiprocessing must only be specified in a configuration file." + assert msg in self.stderr() + assert "Remove --branch from the command line." in self.stderr() def test_run_debug(self): self.cmd_executes("run --debug=opt1 foo.py", """\ |