]> granicus.if.org Git - python/commit
test_default_encoding_issues(): Fully restore sys.setdefaultencoding.
authorTim Peters <tim.peters@gmail.com>
Fri, 8 Apr 2005 18:00:59 +0000 (18:00 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 8 Apr 2005 18:00:59 +0000 (18:00 +0000)
commitf754f5fd68d5ab4f6f7077dcc90080857f5e7e85
tree6c55f0a2a8321a24de3e72b3f40c34d793ad1c07
parentb53b741171a422adac23dd97e58e3cb970aa5888
test_default_encoding_issues():  Fully restore sys.setdefaultencoding.

test_site often failed under "regrtest.py -r", because this xmlrpc test
left sys with a setdefaultencoding attribute, but loading site.py removes
that attribute and test_site.py verifies the attribute is gone.  Changed
this test to get rid of sys.setdefaultencoding if it didn't exist when
this test started.

Don't know whether this is a bugfix (backport) candidate.
Lib/test/test_xmlrpc.py