summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBuck Golemon <buck@yelp.com>2014-11-14 14:00:48 -0800
committerBuck Golemon <buck@yelp.com>2014-11-14 14:00:48 -0800
commiteafbacf36a5ab26e44666c8477f7fdc0284bd068 (patch)
tree508557e484919c729a4d11b9f5c3309db17c8b83 /tests
parentf8b9153791455b6d09ec80d507c300f33b1da5a1 (diff)
downloadpython-coveragepy-eafbacf36a5ab26e44666c8477f7fdc0284bd068.tar.gz
shim for pep302 __loader__
Diffstat (limited to 'tests')
-rw-r--r--tests/try_execfile.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/try_execfile.py b/tests/try_execfile.py
index 314ffae..fd430e6 100644
--- a/tests/try_execfile.py
+++ b/tests/try_execfile.py
@@ -60,6 +60,8 @@ globals_to_check = {
'__doc__': __doc__,
'__builtins__.has_open': hasattr(__builtins__, 'open'),
'__builtins__.dir': dir(__builtins__),
+ '__loader__ exists': '__loader__' in globals(),
+ '__loader__.fullname': getattr(globals().get('__loader__', None), 'fullname', None),
'__package__': __package__,
'DATA': DATA,
'FN_VAL': FN_VAL,