aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_threadedtempfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_threadedtempfile.py')
-rw-r--r--Lib/test/test_threadedtempfile.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_threadedtempfile.py b/Lib/test/test_threadedtempfile.py
index 81d9687be25..2dfd3a08db8 100644
--- a/Lib/test/test_threadedtempfile.py
+++ b/Lib/test/test_threadedtempfile.py
@@ -18,10 +18,10 @@ FILES_PER_THREAD = 50
import tempfile
-from test.test_support import threading_setup, threading_cleanup, run_unittest, import_module
+from test.support import threading_setup, threading_cleanup, run_unittest, import_module
threading = import_module('threading')
import unittest
-import StringIO
+import io
from traceback import print_exc
startEvent = threading.Event()
@@ -31,7 +31,7 @@ class TempFileGreedy(threading.Thread):
ok_count = 0
def run(self):
- self.errors = StringIO.StringIO()
+ self.errors = io.StringIO()
startEvent.wait()
for i in range(FILES_PER_THREAD):
try:
@@ -62,7 +62,7 @@ class ThreadedTempFileTest(unittest.TestCase):
t.join()
ok += t.ok_count
if t.error_count:
- errors.append(str(t.getName()) + str(t.errors.getvalue()))
+ errors.append(str(t.name) + str(t.errors.getvalue()))
threading_cleanup(*thread_info)