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 | eafbacf36a5ab26e44666c8477f7fdc0284bd068 (patch) | |
| tree | 508557e484919c729a4d11b9f5c3309db17c8b83 /tests | |
| parent | f8b9153791455b6d09ec80d507c300f33b1da5a1 (diff) | |
| download | python-coveragepy-eafbacf36a5ab26e44666c8477f7fdc0284bd068.tar.gz | |
shim for pep302 __loader__
Diffstat (limited to 'tests')
| -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 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, |
