summaryrefslogtreecommitdiffstats
path: root/Lib/test/test___future__.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-11-09 20:19:12 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-11-09 20:19:12 (GMT)
commit3ae84b6389f108fddbed5814cd210c3a0110c633 (patch)
tree4e9e4aaf85f042060db57c681f73584bf6b55803 /Lib/test/test___future__.py
parent2411a2dd8283279cf8c4f9ffcd830271506ed3d2 (diff)
downloadcpython-3ae84b6389f108fddbed5814cd210c3a0110c633.zip
cpython-3ae84b6389f108fddbed5814cd210c3a0110c633.tar.gz
cpython-3ae84b6389f108fddbed5814cd210c3a0110c633.tar.bz2
Allow both string and Unicode objects in levels.
Diffstat (limited to 'Lib/test/test___future__.py')
-rw-r--r--Lib/test/test___future__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test___future__.py b/Lib/test/test___future__.py
index 7507aed..7d2b2ae 100644
--- a/Lib/test/test___future__.py
+++ b/Lib/test/test___future__.py
@@ -33,7 +33,7 @@ for feature in features:
verify(type(major) is IntType, "optional major isn't int")
verify(type(minor) is IntType, "optional minor isn't int")
verify(type(micro) is IntType, "optional micro isn't int")
- verify(type(level) is StringType, "optional level isn't string")
+ verify(isinstance(level, basestring), "optional level isn't string")
verify(level in GOOD_SERIALS,
"optional level string has unknown value")
verify(type(serial) is IntType, "optional serial isn't int")
@@ -46,7 +46,7 @@ for feature in features:
verify(type(major) is IntType, "mandatory major isn't int")
verify(type(minor) is IntType, "mandatory minor isn't int")
verify(type(micro) is IntType, "mandatory micro isn't int")
- verify(type(level) is StringType, "mandatory level isn't string")
+ verify(isinstance(level, basestring), "mandatory level isn't string")
verify(level in GOOD_SERIALS,
"mandatory serial string has unknown value")
verify(type(serial) is IntType, "mandatory serial isn't int")