/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2007-03-16 15:54:57 UTC
  • mto: (126.1.40 bzr-gtk)
  • mto: This revision was merged to the branch mainline in revision 172.
  • Revision ID: abentley@panoramicfeedback.com-20070316155457-wjkxdcci05j1atk3
Test suite only fixes encoding if it's changed.  Fixes test_selftest bug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
441
441
        result = TestSuite()
442
442
        result.addTest(tests.test_suite())
443
443
    finally:
444
 
        reload(sys)
445
 
        sys.setdefaultencoding(default_encoding)
 
444
        if sys.getdefaultencoding() != default_encoding:
 
445
            reload(sys)
 
446
            sys.setdefaultencoding(default_encoding)
446
447
    return result