summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-05-06 04:01:52 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-05-06 04:01:52 (GMT)
commit076dbd05600337057723b831bfad6f6cb1873100 (patch)
tree5d2e040ea885c29ddc8343c79b7ff0a47fb9bc21 /Lib/test
parentc4c59050c898afad23279edc89daf6c677ecdbf4 (diff)
downloadcpython-076dbd05600337057723b831bfad6f6cb1873100.zip
cpython-076dbd05600337057723b831bfad6f6cb1873100.tar.gz
cpython-076dbd05600337057723b831bfad6f6cb1873100.tar.bz2
Fix remaining tests and remove an unused import.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/_test_multiprocessing.py6
-rw-r--r--Lib/test/support/script_helper.py2
-rw-r--r--Lib/test/test_compile.py3
-rw-r--r--Lib/test/test_tools/test_i18n.py2
4 files changed, 7 insertions, 6 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index b66cb40..e9120ab 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -19,7 +19,7 @@ import logging
import struct
import operator
import test.support
-import test.script_helper
+import test.support.script_helper
# Skip tests if _multiprocessing wasn't built.
@@ -3483,11 +3483,11 @@ class TestNoForkBomb(unittest.TestCase):
sm = multiprocessing.get_start_method()
name = os.path.join(os.path.dirname(__file__), 'mp_fork_bomb.py')
if sm != 'fork':
- rc, out, err = test.script_helper.assert_python_failure(name, sm)
+ rc, out, err = test.support.script_helper.assert_python_failure(name, sm)
self.assertEqual(out, b'')
self.assertIn(b'RuntimeError', err)
else:
- rc, out, err = test.script_helper.assert_python_ok(name, sm)
+ rc, out, err = test.support.script_helper.assert_python_ok(name, sm)
self.assertEqual(out.rstrip(), b'123')
self.assertEqual(err, b'')
diff --git a/Lib/test/support/script_helper.py b/Lib/test/support/script_helper.py
index 07d167d..584b0e8 100644
--- a/Lib/test/support/script_helper.py
+++ b/Lib/test/support/script_helper.py
@@ -14,7 +14,7 @@ import shutil
import zipfile
from importlib.util import source_from_cache
-from test.support import make_legacy_pyc, strip_python_stderr, temp_dir
+from test.support import make_legacy_pyc, strip_python_stderr
# Cached result of the expensive test performed in the function below.
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py
index 41a92ff..98a4df8 100644
--- a/Lib/test/test_compile.py
+++ b/Lib/test/test_compile.py
@@ -5,7 +5,8 @@ import sys
import _ast
import tempfile
import types
-from test import support, script_helper
+from test import support
+from test.support import script_helper
class TestSpecifics(unittest.TestCase):
diff --git a/Lib/test/test_tools/test_i18n.py b/Lib/test/test_tools/test_i18n.py
index e88e2b1..6eaa8dd 100644
--- a/Lib/test/test_tools/test_i18n.py
+++ b/Lib/test/test_tools/test_i18n.py
@@ -3,7 +3,7 @@
import os
import unittest
-from test.script_helper import assert_python_ok
+from test.support.script_helper import assert_python_ok
from test.test_tools import toolsdir
from test.support import temp_cwd