diff options
author | Buck Golemon <buck@yelp.com> | 2014-11-14 14:00:48 -0800 |
---|---|---|
committer | Buck Golemon <buck@yelp.com> | 2014-11-14 14:00:48 -0800 |
commit | 7ca11054c5b0f91bd77c16923ec443ccee6f2dd9 (patch) | |
tree | ac1ca3c09b68289bf9e9bb63b58e6e1989d331bb /tests/try_execfile.py | |
parent | d05360a060187452f49302467f87ead09d27c9ba (diff) | |
download | python-coveragepy-git-7ca11054c5b0f91bd77c16923ec443ccee6f2dd9.tar.gz |
shim for pep302 __loader__
--HG--
branch : __main__-support
extra : histedit_source : f07b26f0cfc575d81972546f1b7ae2ece84e2d87
Diffstat (limited to 'tests/try_execfile.py')
-rw-r--r-- | tests/try_execfile.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/try_execfile.py b/tests/try_execfile.py index 314ffae0..fd430e6b 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, |