aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test___future__.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test___future__.py')
-rw-r--r--Lib/test/test___future__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test___future__.py b/Lib/test/test___future__.py
index 1d8f8e68525..9ae4ce40ad4 100644
--- a/Lib/test/test___future__.py
+++ b/Lib/test/test___future__.py
@@ -1,6 +1,6 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
import unittest
-from test import test_support
+from test import support
import __future__
GOOD_SERIALS = ("alpha", "beta", "candidate", "final")
@@ -39,7 +39,7 @@ class FutureTest(unittest.TestCase):
a(isinstance(major, int), "%s major isn't int" % name)
a(isinstance(minor, int), "%s minor isn't int" % name)
a(isinstance(micro, int), "%s micro isn't int" % name)
- a(isinstance(level, basestring),
+ a(isinstance(level, str),
"%s level isn't string" % name)
a(level in GOOD_SERIALS,
"%s level string has unknown value" % name)
@@ -60,7 +60,7 @@ class FutureTest(unittest.TestCase):
def test_main():
- test_support.run_unittest(FutureTest)
+ support.run_unittest(FutureTest)
if __name__ == "__main__":
test_main()