summaryrefslogtreecommitdiff
path: root/Lib/test/test_tempfile.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-04-21 15:47:16 +0000
committerGeorg Brandl <georg@python.org>2007-04-21 15:47:16 +0000
commitfb634813509526a134b2449f32a35d3adf08d02d (patch)
treeb8d2035015ea45e3dd6b52d8f1ecabd2b264bc8f /Lib/test/test_tempfile.py
parent62d08f86da83d841e70f2181a4427df26000a322 (diff)
downloadcpython-fb634813509526a134b2449f32a35d3adf08d02d.tar.gz
PEP 3114: rename .next() to .__next__() and add next() builtin.
Diffstat (limited to 'Lib/test/test_tempfile.py')
-rw-r--r--Lib/test/test_tempfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
index 2047a6364e..a398d3740a 100644
--- a/Lib/test/test_tempfile.py
+++ b/Lib/test/test_tempfile.py
@@ -102,7 +102,7 @@ class test__RandomNameSequence(TC):
def test_get_six_char_str(self):
# _RandomNameSequence returns a six-character string
- s = self.r.next()
+ s = next(self.r)
self.nameCheck(s, '', '', '')
def test_many(self):
@@ -111,7 +111,7 @@ class test__RandomNameSequence(TC):
dict = {}
r = self.r
for i in xrange(TEST_FILES):
- s = r.next()
+ s = next(r)
self.nameCheck(s, '', '', '')
self.failIf(s in dict)
dict[s] = 1