diff options
author | Gael Pasgrimaud <gael@gawel.org> | 2014-04-15 21:08:20 +0200 |
---|---|---|
committer | Gael Pasgrimaud <gael@gawel.org> | 2014-04-15 21:08:20 +0200 |
commit | 54e7fe1c9be27cece0fb94118d3f4c46e51577b1 (patch) | |
tree | 98b580124adecbf72509717c3951cbd3b4c5cc93 | |
parent | 40f5331a9ba4bd1788acab336b8ad1a666739fc4 (diff) | |
download | webtest-54e7fe1c9be27cece0fb94118d3f4c46e51577b1.tar.gz |
fix an issue with xunit & py2.6. 2.6 will die soon hopefully
-rw-r--r-- | tests/test_debugapp.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_debugapp.py b/tests/test_debugapp.py index fbe3969..29960ca 100644 --- a/tests/test_debugapp.py +++ b/tests/test_debugapp.py @@ -12,7 +12,10 @@ from webtest.app import AppError from tests.compat import unittest import webbrowser +PY26 = sys.version_info[0:2] == (2, 6) + +@unittest.skipIf(PY26, 'issue with 2.6 and xunit') def test_print_unicode(): print_stderr('°C') @@ -147,6 +150,7 @@ class TestTesting(unittest.TestCase): self.app.get('/?status=404%20Not%20Found', status=404) self.assertRaises(webtest.AppError, self.app.get, '/', status=404) + @unittest.skipIf(PY26, 'issue with 2.6 and xunit') def test_print_stderr(self): res = self.app.get('/') res.charset = 'utf-8' |