summaryrefslogtreecommitdiff
path: root/test/test_phystokens.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-21 09:59:43 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-21 09:59:43 -0500
commit7b42c78faad7be6ed059c35985e0f62247f0ff17 (patch)
treeef2f48b8a242e769e8fc3cae0b28f6f53bc223ce /test/test_phystokens.py
parentc81dfe30adab299f1da3b26b2777b14b895c70a3 (diff)
downloadpython-coveragepy-7b42c78faad7be6ed059c35985e0f62247f0ff17.tar.gz
Handle one more bizarro edge case in tokenizing source: I couldn't look at my own phystokens.py file properly!
Diffstat (limited to 'test/test_phystokens.py')
-rw-r--r--test/test_phystokens.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/test_phystokens.py b/test/test_phystokens.py
index fa0fa04..fb0b553 100644
--- a/test/test_phystokens.py
+++ b/test/test_phystokens.py
@@ -38,10 +38,7 @@ class PhysTokensTest(CoverageTest):
# before comparing.
source = re.sub("(?m)[ \t]+$", "", source)
tokenized = re.sub("(?m)[ \t]+$", "", tokenized)
- #if source != tokenized:
- # open("0.py", "w").write(source)
- # open("1.py", "w").write(tokenized)
- self.assertEqual(source, tokenized)
+ self.assert_multiline_equal(source, tokenized)
def check_file_tokenization(self, fname):
"""Use the contents of `fname` for `check_tokenization`."""