summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2005-08-03 17:09:04 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2005-08-03 17:09:04 (GMT)
commit4e41a4b64cb9e69d15ebe0cdf752c5e105318a94 (patch)
tree84023b8389b53f9847b961a7b5f36c425ef94da9 /Lib/test/test_sys.py
parent649f8e7de2ad8fc42748b56e8e64574478d2d7fe (diff)
downloadcpython-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.py3
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))