diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-03-06 09:11:26 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-03-06 09:11:26 -0500 |
commit | 26e2f9b6f22fd29efe3e4bd7df63acc144950c80 (patch) | |
tree | 09da3a29fa3a555233ea445c35e32f95413b3156 /tests/test_process.py | |
parent | 4ce893437c9e777216cac981c5909572fa10d9df (diff) | |
download | python-coveragepy-git-26e2f9b6f22fd29efe3e4bd7df63acc144950c80.tar.gz |
refactor: no need for specialized assert_starts_with method
Diffstat (limited to 'tests/test_process.py')
-rw-r--r-- | tests/test_process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index 9f07b9cc..548f3dd7 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -1208,7 +1208,7 @@ class PydocTest(CoverageTest): # Run pydoc. out = self.run_command("python -m pydoc " + name) # It should say "Help on..", and not have a traceback - self.assert_starts_with(out, "Help on ") + assert out.startswith("Help on ") assert "Traceback" not in out # All of the lines in the docstring should be there somewhere. |