summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-04-12 14:34:21 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-04-12 14:34:21 -0400
commitca395b502d64037455ed19ec366fc88642721396 (patch)
tree779613d7b91af2726f2c758d5b9b185e13da323c /test
parentc6ffb97a152efe2b14f28ee94dc948d3eaf5a06d (diff)
downloadpython-coveragepy-ca395b502d64037455ed19ec366fc88642721396.tar.gz
Pylint tweaks
Diffstat (limited to 'test')
-rw-r--r--test/test_execfile.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_execfile.py b/test/test_execfile.py
index 6ad2f58..d75bde0 100644
--- a/test/test_execfile.py
+++ b/test/test_execfile.py
@@ -24,12 +24,14 @@ class RunTests(unittest.TestCase):
tryfile = os.path.join(here, "try_execfile.py")
run_python_file(tryfile, [tryfile, "arg1", "arg2"])
mod_globs = eval(self.stdout.getvalue())
-
+
# The file should think it is __main__
self.assertEqual(mod_globs['__name__'], "__main__")
# It should seem to come from a file named try_execfile
- dunder_file = os.path.splitext(os.path.basename(mod_globs['__file__']))[0]
+ dunder_file = os.path.splitext(
+ os.path.basename(mod_globs['__file__'])
+ )[0]
self.assertEqual(dunder_file, "try_execfile")
# It should have its correct module data.