diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-11-09 20:19:12 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-11-09 20:19:12 (GMT) |
commit | 3ae84b6389f108fddbed5814cd210c3a0110c633 (patch) | |
tree | 4e9e4aaf85f042060db57c681f73584bf6b55803 /Lib/test/test___future__.py | |
parent | 2411a2dd8283279cf8c4f9ffcd830271506ed3d2 (diff) | |
download | cpython-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__.py | 4 |
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") |