summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-03-06 17:40:28 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-03-06 17:40:28 -0500
commit64a248c2818b724ae89fe26f38e5738cd59c768b (patch)
tree0ffffbc0bc94fb34128e827ca376b8a1fc05f79c
parent7f0741b9997d96567abc32fe306805db610d959d (diff)
downloadpython-coveragepy-git-64a248c2818b724ae89fe26f38e5738cd59c768b.tar.gz
Comment spelling and todo bookkeeping.
-rw-r--r--TODO.txt3
-rw-r--r--coverage/codeunit.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/TODO.txt b/TODO.txt
index 36b7c29a..438bcee1 100644
--- a/TODO.txt
+++ b/TODO.txt
@@ -22,9 +22,10 @@ Key:
- .format() ?
+ try/except/finally
+ with assertRaises
- - addCleaup instead of tearDown
+ - addCleaup instead of tearDown (only in 2.7!)
+ exec statement can look like a function in py2 (since when?)
- runpy ?
+ - we can use "except ExcClass as e:"
+ Remove code only run on <2.6
- Change data file to json
diff --git a/coverage/codeunit.py b/coverage/codeunit.py
index c58e237b..0b02f862 100644
--- a/coverage/codeunit.py
+++ b/coverage/codeunit.py
@@ -127,7 +127,7 @@ class CodeUnit(object):
def should_be_python(self):
"""Does it seem like this file should contain Python?
- This is used to decide if a file reported as part of the exection of
+ This is used to decide if a file reported as part of the execution of
a program was really likely to have contained Python in the first
place.