summaryrefslogtreecommitdiff
path: root/testtools/tests/test_compat.py
Commit message (Collapse)AuthorAgeFilesLines
* Overhaul exception reporting.Robert Collins2015-03-101-306/+1
| | | | | | | | | | | unittest2 recently added the ability to show local variables in tracebacks as https://github.com/testing-cabal/testtools/issues/111 requested for us. Reusing that requires some refactoring of our code, in particular where we were reimplementing bits of the traceback module. Now we can just hard-depend on traceback2 and linecache2 which are brought in by unittest2 1.0.0. Change-Id: Ieb3268029d26b48ed4fcd25ed644bd339f6aa3fb
* Fix test_bom Python 3.3 test failureMartin Packman2013-11-301-1/+2
| | | | | | | | Adapt test_compat.TestDetectEncoding.test_bom to skip compile step on corner case that is no longer valid on Python 3.3 and later. Change-Id: Ia4d5949363ca4cea603c2a0847742a1df8f68709
* Refactor testtools.compat._format_exc_info into two separate functions.Thomi Richards2013-10-211-0/+150
|
* Further fix to unicode_output_stream.Robert Collins2013-02-071-0/+15
|
* Fix handling of io.StringIO in unicode_output_stream.Robert Collins2013-02-071-5/+10
|
* Only assert that a reraised traceback has the original as a tailMartin Packman2012-07-261-3/+4
|
* Add tests for compat.reraise details that fail on py3kMartin Packman2012-07-261-0/+37
|
* Seems pypy forgets to lower() the cookie encoding nameMartin2011-12-211-1/+1
|
* Test that not passing multiline to text_repr defaults based on inputMartin2011-09-141-0/+10
|
* Add third state to multiline argument of text_repr and comment the internal ↵Martin2011-09-131-8/+8
| | | | logic
* Extra tests to ensure multiline quoting is correct on Python 3Martin2011-09-131-0/+3
|
* Correct a couple of the examples for text_repr testsMartin2011-08-221-4/+4
|
* Tests for repr function to replace broken stringification schemes in matchersMartin2011-08-221-0/+114
|
* Split the compat test.Jonathan Lange2011-07-041-5/+10
|
* Fix test on Python 3Martin2011-07-011-5/+5
|
* Wrap unicode streams on Python 2 so writing as well as printing unicode to ↵Martin2011-07-011-6/+11
| | | | them works
* Fix a inaccurate unexpected success, hidden by our broken Python 3 supportJonathan Lange2010-11-291-7/+8
|
* Convert assertRaises usage to assertThat.Robert Collins2010-11-111-1/+6
|
* testtools.utils has been renamed to testtools.compat. ImportingRobert Collins2010-06-231-0/+10
| | | | | | | | | testtools.utils will now generate a deprecation warning. Add machinery for Python 2 to create unicode tracebacks like those used by Python 3. This means testtools no longer throws on encountering non-ascii filenames, source lines, or exception strings when displaying test results. Largely contributed by Martin[gz] with some tweaks from Robert Collins.
* Allow detect encoding tests to work when a Python implementation may object ↵Martin2010-06-201-10/+12
| | | | to compiling them
* Trivial issues seen when scanning the diff for reviewMartin2010-06-201-1/+1
|
* Move most of utils module to compat and put iterate_tests in testsuite moduleMartin2010-06-181-0/+239