summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-16 17:36:36 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-16 17:36:36 -0500
commit56ec44bb906cf1704d6e61aa32486bb2eaef9881 (patch)
treec0c15813f503fc5efcd1be81e97b69625688a260 /tests/test_parser.py
parent89aea86c7d32aef058a657fe957d0f7cb4cd0962 (diff)
downloadpython-coveragepy-56ec44bb906cf1704d6e61aa32486bb2eaef9881.tar.gz
Properly handle if-statements optimized away. #522
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r--tests/test_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 838d781..0053e93 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -193,7 +193,7 @@ class ParserMissingArcDescriptionTest(CoverageTest):
def parse_text(self, source):
"""Parse Python source, and return the parser object."""
- parser = PythonParser(textwrap.dedent(source))
+ parser = PythonParser(text=textwrap.dedent(source))
parser.parse_source()
return parser