summaryrefslogtreecommitdiff
path: root/test/test_execfile.py
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
commit030fa036e592c3336da512a37945c3b0d0ac701e (patch)
treecafe1f354ef0fc6c1bfc6901f7574be3c4750fd9 /test/test_execfile.py
parentc6933d0d26c8fb26fd26d6b4cf93204cdbb7ef3e (diff)
downloadpython-coveragepy-git-030fa036e592c3336da512a37945c3b0d0ac701e.tar.gz
Pylint tweaks
Diffstat (limited to 'test/test_execfile.py')
-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 6ad2f58e..d75bde0a 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.