diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-01 18:54:56 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-01 18:54:56 (GMT) |
commit | fce7fd6426519a2897330c03da7eb889232bf681 (patch) | |
tree | afe2ba5ce7020f102d7c5b5e568643b2e76199ad /Lib/test/test_site.py | |
parent | b0fa831d1e073624d28aa403496f122e2f35697a (diff) | |
download | cpython-fce7fd6426519a2897330c03da7eb889232bf681.zip cpython-fce7fd6426519a2897330c03da7eb889232bf681.tar.gz cpython-fce7fd6426519a2897330c03da7eb889232bf681.tar.bz2 |
Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()
are now removed, since their effect was inexistent in 3.x (the default
encoding is hardcoded to utf-8 and cannot be changed).
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 013bfe1..8d03224 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -29,10 +29,6 @@ if not os.path.isdir(site.USER_SITE): class HelperFunctionsTests(unittest.TestCase): """Tests for helper functions. - - The setting of the encoding (set using sys.setdefaultencoding) used by - the Unicode implementation is not tested. - """ def setUp(self): @@ -333,10 +329,6 @@ class ImportSideEffectTests(unittest.TestCase): else: self.fail("did not alias mbcs") - def test_setdefaultencoding_removed(self): - # Make sure sys.setdefaultencoding is gone - self.assertTrue(not hasattr(sys, "setdefaultencoding")) - def test_sitecustomize_executed(self): # If sitecustomize is available, it should have been imported. if "sitecustomize" not in sys.modules: |