summaryrefslogtreecommitdiff
path: root/test/test_phystokens.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-03-13 07:35:56 -0500
committerNed Batchelder <ned@nedbatchelder.com>2010-03-13 07:35:56 -0500
commit1f5057dc7d6b7d02084ee15e2d93fb43d142c630 (patch)
treed32b212549dbd14af64d6ec94006cb4ad85bc9bd /test/test_phystokens.py
parentbc0a40ecb0995d0ac88ea67a76db4fc1d1dd35b3 (diff)
downloadpython-coveragepy-git-1f5057dc7d6b7d02084ee15e2d93fb43d142c630.tar.gz
Check that our tokenizer works properly for dos-line-ended files.
--HG-- rename : test/stress_phystoken.txt => test/stress_phystoken.tok
Diffstat (limited to 'test/test_phystokens.py')
-rw-r--r--test/test_phystokens.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_phystokens.py b/test/test_phystokens.py
index 6b16d68e..6b533cf6 100644
--- a/test/test_phystokens.py
+++ b/test/test_phystokens.py
@@ -75,5 +75,7 @@ class PhysTokensTest(CoverageTest):
def test_stress(self):
# Check the tokenization of a stress-test file.
- stress = os.path.join(HERE, "stress_phystoken.txt")
+ stress = os.path.join(HERE, "stress_phystoken.tok")
+ self.check_file_tokenization(stress)
+ stress = os.path.join(HERE, "stress_phystoken_dos.tok")
self.check_file_tokenization(stress)