From db8836e5d6c69b8861b1e5ffaf90e8215c02cad2 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 28 Sep 2014 21:50:46 -0400 Subject: A few more metacov clean ups --- tests/try_execfile.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'tests/try_execfile.py') 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"), -- cgit v1.2.1