summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-30 23:00:54 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-10-30 23:00:54 (GMT)
commit1a7127f6df71af71ff7415e72169dcfd57da2986 (patch)
treeb691590c0c0119ffae80433f091fa6fa584a9e1c /Lib/test/test_import.py
parent807a5a165254f7d82cceb4c3bed72b84661ef89f (diff)
downloadcpython-1a7127f6df71af71ff7415e72169dcfd57da2986.zip
cpython-1a7127f6df71af71ff7415e72169dcfd57da2986.tar.gz
cpython-1a7127f6df71af71ff7415e72169dcfd57da2986.tar.bz2
remove useless assignment
Diffstat (limited to 'Lib/test/test_import.py')
-rw-r--r--Lib/test/test_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index 359ef91..98d8a34 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -102,7 +102,7 @@ class ImportTests(unittest.TestCase):
sys.path.insert(0, os.curdir)
try:
fname = TESTFN + os.extsep + "py"
- f = open(fname, 'w').close()
+ open(fname, 'w').close()
os.chmod(fname, (stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH |
stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH))
__import__(TESTFN)