summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2014-08-07 00:20:22 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2014-08-07 00:20:22 (GMT)
commit1241c47aa2af26d90be1fdb6b0990a08bf9beafd (patch)
treed9bf9bc513bca5ef2cc2f7e1d1226994db1c7158 /Lib
parent3d4b2d4df25aafdfce52e20fc1cb9976671023c2 (diff)
downloadcpython-1241c47aa2af26d90be1fdb6b0990a08bf9beafd.zip
cpython-1241c47aa2af26d90be1fdb6b0990a08bf9beafd.tar.gz
cpython-1241c47aa2af26d90be1fdb6b0990a08bf9beafd.tar.bz2
#22092: use absolute imports in unittest tests. Patch by Vajrasky Kok.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/unittest/test/test_case.py2
-rw-r--r--Lib/unittest/test/test_discovery.py1
-rw-r--r--Lib/unittest/test/test_functiontestcase.py2
-rw-r--r--Lib/unittest/test/test_program.py1
-rw-r--r--Lib/unittest/test/test_runner.py3
-rw-r--r--Lib/unittest/test/test_skipping.py2
-rw-r--r--Lib/unittest/test/test_suite.py2
7 files changed, 8 insertions, 5 deletions
diff --git a/Lib/unittest/test/test_case.py b/Lib/unittest/test/test_case.py
index 4932578..e70dd5b 100644
--- a/Lib/unittest/test/test_case.py
+++ b/Lib/unittest/test/test_case.py
@@ -14,7 +14,7 @@ from test import support
import unittest
-from .support import (
+from unittest.test.support import (
TestEquality, TestHashing, LoggingResult, LegacyLoggingResult,
ResultWithNoStartTestRunStopTestRun
)
diff --git a/Lib/unittest/test/test_discovery.py b/Lib/unittest/test/test_discovery.py
index 6b7b128..abb9066 100644
--- a/Lib/unittest/test/test_discovery.py
+++ b/Lib/unittest/test/test_discovery.py
@@ -6,6 +6,7 @@ import builtins
from test import support
import unittest
+import unittest.test
class TestableTestProgram(unittest.TestProgram):
diff --git a/Lib/unittest/test/test_functiontestcase.py b/Lib/unittest/test/test_functiontestcase.py
index d7fe07a..c5f2bcb 100644
--- a/Lib/unittest/test/test_functiontestcase.py
+++ b/Lib/unittest/test/test_functiontestcase.py
@@ -1,6 +1,6 @@
import unittest
-from .support import LoggingResult
+from unittest.test.support import LoggingResult
class Test_FunctionTestCase(unittest.TestCase):
diff --git a/Lib/unittest/test/test_program.py b/Lib/unittest/test/test_program.py
index 3294298..725d67f 100644
--- a/Lib/unittest/test/test_program.py
+++ b/Lib/unittest/test/test_program.py
@@ -4,6 +4,7 @@ import os
import sys
from test import support
import unittest
+import unittest.test
class Test_TestProgram(unittest.TestCase):
diff --git a/Lib/unittest/test/test_runner.py b/Lib/unittest/test/test_runner.py
index ef1c1af9..7c0bd51 100644
--- a/Lib/unittest/test/test_runner.py
+++ b/Lib/unittest/test/test_runner.py
@@ -7,7 +7,8 @@ import subprocess
import unittest
from unittest.case import _Outcome
-from .support import LoggingResult, ResultWithNoStartTestRunStopTestRun
+from unittest.test.support import (LoggingResult,
+ ResultWithNoStartTestRunStopTestRun)
class TestCleanUp(unittest.TestCase):
diff --git a/Lib/unittest/test/test_skipping.py b/Lib/unittest/test/test_skipping.py
index 314a7a4..807510f 100644
--- a/Lib/unittest/test/test_skipping.py
+++ b/Lib/unittest/test/test_skipping.py
@@ -1,6 +1,6 @@
import unittest
-from .support import LoggingResult
+from unittest.test.support import LoggingResult
class Test_TestSkipping(unittest.TestCase):
diff --git a/Lib/unittest/test/test_suite.py b/Lib/unittest/test/test_suite.py
index 38311ca..0551a16 100644
--- a/Lib/unittest/test/test_suite.py
+++ b/Lib/unittest/test/test_suite.py
@@ -3,7 +3,7 @@ import unittest
import gc
import sys
import weakref
-from .support import LoggingResult, TestEquality
+from unittest.test.support import LoggingResult, TestEquality
### Support code for Test_TestSuite