diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-05-26 17:44:33 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-05-26 17:44:33 (GMT) |
commit | 79e4803b29b935c6fa008aef0c8c7fa4fd94a490 (patch) | |
tree | f5bd0a9b88ffc65ace6b1543bf7ba03e0e417ccb /Lib/test/support.py | |
parent | 2b7411df5ca0b6ef714377730fd4d94693f26abd (diff) | |
download | cpython-79e4803b29b935c6fa008aef0c8c7fa4fd94a490.zip cpython-79e4803b29b935c6fa008aef0c8c7fa4fd94a490.tar.gz cpython-79e4803b29b935c6fa008aef0c8c7fa4fd94a490.tar.bz2 |
remove test.support.have_unicode
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r-- | Lib/test/support.py | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py index deae47d..c011c10 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -17,14 +17,14 @@ __all__ = ["Error", "TestFailed", "TestSkipped", "ResourceDenied", "import_modul "verbose", "use_resources", "max_memuse", "record_original_stdout", "get_original_stdout", "unload", "unlink", "rmtree", "forget", "is_resource_enabled", "requires", "find_unused_port", "bind_port", - "fcmp", "have_unicode", "is_jython", "TESTFN", "HOST", "FUZZ", - "findfile", "verify", "vereq", "sortdict", "check_syntax_error", - "open_urlresource", "WarningMessage", "catch_warning", "CleanImport", - "EnvironmentVarGuard", "TransientResource", "captured_output", - "captured_stdout", "TransientResource", "transient_internet", - "run_with_locale", "set_memlimit", "bigmemtest", "bigaddrspacetest", - "BasicTestRunner", "run_unittest", "run_doctest", "threading_setup", - "threading_cleanup", "reap_children"] + "fcmp", "is_jython", "TESTFN", "HOST", "FUZZ", "findfile", "verify", + "vereq", "sortdict", "check_syntax_error", "open_urlresource", + "WarningMessage", "catch_warning", "CleanImport", "EnvironmentVarGuard", + "TransientResource", "captured_output", "captured_stdout", + "TransientResource", "transient_internet", "run_with_locale", + "set_memlimit", "bigmemtest", "bigaddrspacetest", "BasicTestRunner", + "run_unittest", "run_doctest", "threading_setup", "threading_cleanup", + "reap_children"] class Error(Exception): """Base class for regression test exceptions.""" @@ -243,12 +243,6 @@ def fcmp(x, y): # fuzzy comparison function return (len(x) > len(y)) - (len(x) < len(y)) return (x > y) - (x < y) -try: - str - have_unicode = True -except NameError: - have_unicode = False - is_jython = sys.platform.startswith('java') # Filename used for testing |