summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-09-28 21:50:46 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-09-28 21:50:46 -0400
commitdb8836e5d6c69b8861b1e5ffaf90e8215c02cad2 (patch)
tree792b1ea95d0d2947411c6214684dfc366559b3a8 /tests
parentca8403a7bd70f42dc6f97826e0e58bd607799da7 (diff)
downloadpython-coveragepy-db8836e5d6c69b8861b1e5ffaf90e8215c02cad2.tar.gz
A few more metacov clean ups
Diffstat (limited to 'tests')
-rw-r--r--tests/test_oddball.py2
-rw-r--r--tests/try_execfile.py7
2 files changed, 2 insertions, 7 deletions
diff --git a/tests/test_oddball.py b/tests/test_oddball.py
index 47f492f..3a013b0 100644
--- a/tests/test_oddball.py
+++ b/tests/test_oddball.py
@@ -173,7 +173,7 @@ class MemoryLeakTest(CoverageTest):
if ram_growth > 100000:
fails += 1
- if fails > 8:
+ if fails > 8: # pragma: only failure
self.fail("RAM grew by %d" % (ram_growth))
diff --git a/tests/try_execfile.py b/tests/try_execfile.py
index 9bbabd1..825fdb7 100644
--- a/tests/try_execfile.py
+++ b/tests/try_execfile.py
@@ -12,18 +12,13 @@ def my_function(a):
FN_VAL = my_function("fooey")
-try:
- pkg = __package__
-except NameError:
- pkg = "*No __package__*"
-
globals_to_check = {
'__name__': __name__,
'__file__': __file__,
'__doc__': __doc__,
'__builtins__.has_open': hasattr(__builtins__, 'open'),
'__builtins__.dir': dir(__builtins__),
- '__package__': pkg,
+ '__package__': __package__,
'DATA': DATA,
'FN_VAL': FN_VAL,
'__main__.DATA': getattr(__main__, "DATA", "nothing"),