~ubuntu-branches/ubuntu/precise/python3.2/precise-proposed

« back to all changes in this revision

Viewing changes to Lib/test/test_strlit.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-09 18:40:39 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120309184039-j3yk2emxr1plyo21
Tags: 3.2.3~rc1-1
* Python 3.2.3 release candidate 1.
* Update to 20120309 from the 3.2 branch.
* Fix libpython.a symlink. Closes: #660146.
* Build-depend on xauth.
* Run the gdb tests for the debug build only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
import shutil
33
33
import tempfile
34
34
import unittest
 
35
import test.support
35
36
 
36
37
 
37
38
TEMPLATE = r"""# coding: %s
64
65
        sys.path.insert(0, self.tmpdir)
65
66
 
66
67
    def tearDown(self):
67
 
        sys.path = self.save_path
 
68
        sys.path[:] = self.save_path
68
69
        shutil.rmtree(self.tmpdir, ignore_errors=True)
69
70
 
70
71
    def test_template(self):
142
143
        self.check_encoding("latin9")
143
144
 
144
145
 
 
146
def test_main():
 
147
    test.support.run_unittest(__name__)
 
148
 
145
149
if __name__ == "__main__":
146
 
    # Hack so that error messages containing non-ASCII can be printed
147
 
    sys.stdout._encoding = sys.stderr._encoding = "utf-8"
148
 
    unittest.main()
 
150
    test_main()