summaryrefslogtreecommitdiffstats
path: root/runtests.py
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2014-07-24 16:22:11 -0400
committerGravatar Jon Bernard <jbernard@tuxion.com> 2014-07-24 16:22:11 -0400
commit0e0d0985d04a4ccb6f8e8862373eaffe6d1e289d (patch)
treea8103a22c46251927ebc21ea45a8111677bb056a /runtests.py
parent5ef48ae15a1790d40a219f6a21d83217499eb6c6 (diff)
downloaddotfiles-0e0d0985d04a4ccb6f8e8862373eaffe6d1e289d.tar.gz
dotfiles-0e0d0985d04a4ccb6f8e8862373eaffe6d1e289d.tar.bz2
dotfiles-0e0d0985d04a4ccb6f8e8862373eaffe6d1e289d.zip
Various pep8 fixes and cleanups
Re #36
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