Use absolute imports
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py
index f3f78e7..bbca798 100644
--- a/Lib/test/test_dict.py
+++ b/Lib/test/test_dict.py
@@ -445,7 +445,7 @@
             self.fail_("g[42] didn't raise KeyError")
 
 
-import mapping_tests
+from test import mapping_tests
 
 class GeneralMappingTests(mapping_tests.BasicTestMappingProtocol):
     type2test = dict
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index 72f27fa..a72b8bd 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -15,7 +15,7 @@
     raise TestFailed("import of RAnDoM should have failed (case mismatch)")
 
 # Another brief digression to test the accuracy of manifest float constants.
-import double_const  # don't blink -- that *was* the test
+from test import double_const  # don't blink -- that *was* the test
 
 def remove_files(name):
     for f in (name + os.extsep + "py",
diff --git a/Lib/test/test_sets.py b/Lib/test/test_sets.py
index ff834e0..85e4a22 100644
--- a/Lib/test/test_sets.py
+++ b/Lib/test/test_sets.py
@@ -819,7 +819,8 @@
 __test__ = {'libreftest' : libreftest}
 
 def test_main(verbose=None):
-    import test_sets, doctest
+    import doctest
+    from test import test_sets
     test_support.run_unittest(
         TestSetOfSets,
         TestExceptionPropagation,
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 58b54c1..64a2ee9 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -632,7 +632,7 @@
         from urllib2 import build_opener, HTTPHandler, HTTPError, \
              HTTPCookieProcessor
 
-        from test_cookielib import interact_netscape
+        from test.test_cookielib import interact_netscape
 
         cj = CookieJar()
         interact_netscape(cj, "http://www.example.com/", "spam=eggs")