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

This commit is contained in:
Florent Xicluna 2010-08-16 19:03:05 +00:00
parent e29e6bffb5
commit c9c29e2ab2
1 changed files with 2 additions and 1 deletions

View File

@ -465,13 +465,14 @@ class RelativeImportTests(unittest.TestCase):
def test_absolute_import_without_future(self):
# If explicit relative import syntax is used, then do not try
# to perform a relative import in the face of failure.
# to perform an absolute import in the face of failure.
# Issue #7902.
with self.assertRaises(ImportError):
from .os import sep
self.fail("explicit relative import triggered an "
"implicit absolute import")
class OverridingImportBuiltinTests(unittest.TestCase):
def test_override_builtin(self):
# Test that overriding builtins.__import__ can bypass sys.modules.