Merged revisions 84100 via svnmerge from
authorFlorent Xicluna <florent.xicluna@gmail.com>
Mon, 16 Aug 2010 19:26:54 +0000 (19:26 +0000)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Mon, 16 Aug 2010 19:26:54 +0000 (19:26 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint

................
  r84100 | florent.xicluna | 2010-08-16 21:22:18 +0200 (lun., 16 août 2010) | 13 lines

  Merged revisions 84097,84099 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/branches/py3k

  ........
    r84097 | florent.xicluna | 2010-08-16 20:41:19 +0200 (lun., 16 août 2010) | 1 line

    Use test.support and unittest features.  Fix duplicated test (bad merge in r79033).  Fix comment for issue #7902.
  ........
    r84099 | florent.xicluna | 2010-08-16 21:03:05 +0200 (lun., 16 août 2010) | 1 line

    I get it wrong in r84097: s/relative/absolute/
  ........
................

Lib/test/test_import.py

index bbf21ceb8fadf45fa35ebbde5595860473f8cdb8..60346ab9fc82f38d9f55a888f7e1550deda14a2e 100644 (file)
@@ -417,8 +417,8 @@ class RelativeImport(unittest.TestCase):
         self.assertRaises(ValueError, check_relative)
 
     def test_absolute_import_without_future(self):
-        # If absolute import syntax is used, then do not try to perform
-        # a relative import in the face of failure.
+        # If explicit relative import syntax is used, then do not try
+        # to perform an absolute import in the face of failure.
         # Issue #7902.
         try:
             from .os import sep
@@ -426,7 +426,7 @@ class RelativeImport(unittest.TestCase):
             pass
         else:
             self.fail("explicit relative import triggered an "
-                      "implicit relative import")
+                      "implicit absolute import")
 
 
 def test_main(verbose=None):