diff options
author | Walter Dörwald <walter@livinglogic.de> | 2005-08-03 17:09:04 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2005-08-03 17:09:04 (GMT) |
commit | 4e41a4b64cb9e69d15ebe0cdf752c5e105318a94 (patch) | |
tree | 84023b8389b53f9847b961a7b5f36c425ef94da9 /Lib/test/test_sys.py | |
parent | 649f8e7de2ad8fc42748b56e8e64574478d2d7fe (diff) | |
download | cpython-4e41a4b64cb9e69d15ebe0cdf752c5e105318a94.zip cpython-4e41a4b64cb9e69d15ebe0cdf752c5e105318a94.tar.gz cpython-4e41a4b64cb9e69d15ebe0cdf752c5e105318a94.tar.bz2 |
Disable a few other tests, that can't work if Python is compiled without
Unicode support.
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | Lib/test/test_sys.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index e1bb8bf..b98c648 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -247,7 +247,8 @@ class SysModuleTest(unittest.TestCase): self.assert_(isinstance(sys.executable, basestring)) self.assert_(isinstance(sys.hexversion, int)) self.assert_(isinstance(sys.maxint, int)) - self.assert_(isinstance(sys.maxunicode, int)) + if test.test_support.have_unicode: + self.assert_(isinstance(sys.maxunicode, int)) self.assert_(isinstance(sys.platform, basestring)) self.assert_(isinstance(sys.prefix, basestring)) self.assert_(isinstance(sys.version, basestring)) |