aboutsummaryrefslogtreecommitdiffstats
path: root/runtests.py
diff options
context:
space:
mode:
Diffstat (limited to 'runtests.py')
-rwxr-xr-xruntests.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/runtests.py b/runtests.py
index 6b93a4a..56893b3 100755
--- a/runtests.py
+++ b/runtests.py
@@ -2910,12 +2910,13 @@ import sys
import base64
import zlib
+
class DictImporter(object):
def __init__(self, sources):
self.sources = sources
def find_module(self, fullname, path=None):
- if fullname == "argparse" and sys.version_info >= (2,7):
+ if fullname == "argparse" and sys.version_info >= (2, 7):
# we were generated with <python2.7 (which pulls in argparse)
# but we are running now on a stdlib which has it, so use that.
return None
@@ -2942,7 +2943,7 @@ class DictImporter(object):
if is_pkg:
module.__path__ = [fullname]
- do_exec(co, module.__dict__) # noqa
+ do_exec(co, module.__dict__) # noqa
return sys.modules[fullname]
def get_source(self, name):
@@ -2955,7 +2956,7 @@ if __name__ == "__main__":
if sys.version_info >= (3, 0):
exec("def do_exec(co, loc): exec(co, loc)\n")
import pickle
- sources = sources.encode("ascii") # ensure bytes
+ sources = sources.encode("ascii") # ensure bytes
sources = pickle.loads(zlib.decompress(base64.decodebytes(sources)))
else:
import cPickle as pickle
@@ -2966,4 +2967,4 @@ if __name__ == "__main__":
sys.meta_path.insert(0, importer)
entry = "import pytest; raise SystemExit(pytest.cmdline.main())"
- do_exec(entry, locals()) # noqa
+ do_exec(entry, locals()) # noqa