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
commitc82d2f8e207d814dd2b0c532e7d5d514ce578f53 (patch)
treee11f945c0fb817a190d5cad2e8355499aba6a0f9 /tests/test_parser.py
parent050d768cd646a87a5c1578791546a71501bf518f (diff)
downloadpython-coveragepy-git-c82d2f8e207d814dd2b0c532e7d5d514ce578f53.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 838d7814..0053e932 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