summaryrefslogtreecommitdiff
path: root/python/subunit/tests
Commit message (Collapse)AuthorAgeFilesLines
* (no commit message)Jelmer Vernooij2023-02-0210-61/+61
|
* Improve unittest callsJelmer Vernooij2023-02-013-26/+43
| | | | | | | reformatted python/subunit/tests/test_subunit_filter.py reformatted python/subunit/tests/test_test_results.py reformatted python/subunit/tests/test_test_protocol.py All done! 3 reformatted, 13 left unchanged
* Sort Python import definitions with isortJelmer Vernooij2023-01-3113-87/+52
|
* Drop compatibility wrappers for memoryview in older Python versionsJelmer Vernooij2023-01-282-3/+3
|
* Fix reading of test lists.fix-test-listsJelmer Vernooij2022-11-161-0/+11
|
* Fix distcheck; include python files again.Jelmer Vernooij2022-11-051-1/+1
|
* Merge branch 'fix-filter-entrypoints' of https://github.com/mtreinish/subunitJelmer Vernooij2022-11-051-4/+1
|\
| * Merge branch 'master' into fix-filter-entrypointsMatthew Treinish2021-06-156-6/+29
| |\
| * \ Merge branch 'master' into fix-filter-entrypointsMatthew Treinish2021-06-151-63/+0
| |\ \
| * \ \ Merge branch 'master' into fix-filter-entrypointsMatthew Treinish2021-06-103-15/+92
| |\ \ \
| * | | | Cleanup tests and buildsMatthew Treinish2019-12-151-4/+1
| | | | |
* | | | | Explicitly invoke python3.Jelmer Vernooij2022-01-252-2/+2
| | | | | | | | | | | | | | | | | | | | That's the only major version subunit supports, and some platforms still ship with /usr/bin/python==python2
* | | | | Stop using io imports from testtoolsStephen Finucane2021-12-156-29/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We no longer need to worry about Python 2, so we can just import directly from 'io'. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* | | | | Remove logic for Python < 3.6Stephen Finucane2021-12-153-45/+15
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* | | | | Handle different SyntaxError output in testtools 2.5.0Colin Watson2021-07-272-42/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | testtools 2.5.0 only supports Python 3, and so switched from traceback2 to the standard library's traceback. However, this includes the fix for https://bugs.python.org/issue24695, and so doesn't produce a traceback header when there's no traceback, in particular for `SyntaxError` exceptions. Adjust the tests to tolerate this. See also https://github.com/zopefoundation/zope.testrunner/issues/125.
* | | | | Sort Content-Type parameters when writing detailsColin Watson2021-07-271-33/+9
| | | | | | | | | | | | | | | | | | | | This simplifies tests by making the output more reproducible.
* | | | | Import six from the right placeColin Watson2021-07-271-1/+1
| |_|_|/ |/| | | | | | | | | | | We shouldn't rely on testtools.testcase importing it.
* | | | Merge branch 'master' into testtools.compatMatthew Treinish2021-06-151-63/+0
|\ \ \ \ | | |_|/ | |/| |
| * | | Revert "Merge pull request #17 from mtreinish/timestamp-output"Matthew Treinish2021-06-151-63/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | This reverts commit 1dafb884e47f5fc26232672b01c2a9574577e7be, reversing changes made to 7583ce28db20a0b2ad229a69175949e5a30586fe. This PR had completely broken tests, while I think the feature works it's blocking CI and preventing any merges. I'll rework the PR and resubmit after I get the unittests working.
* | | Fix imports from testtools.compatMatthieu Huin2021-06-156-6/+29
|/ / | | | | | | | | | | The future release of testtools will drop StringIO and BytesIO. Try to import them from testtools.compat, or from the io module if they're not available.
* | Merge pull request #17 from mtreinish/timestamp-outputJelmer Vernooij2021-03-091-0/+63
|\ \ | | | | | | Add options to output filter to set timestamps
| * | Fix timestamp test copy paste errorMatthew Treinish2020-03-141-1/+1
| | |
| * | Add options to output filter to set timestampsMatthew Treinish2020-03-141-0/+63
| |/ | | | | | | | | | | This commit adds 2 new options to subunit-output, --start-time and --stop-time, to specify a timestamp for the start and end of a test in the output.
* | add missing referenceThomas Grainger2021-03-041-0/+2
| |
* | Unittest from testtools doesn't work, use the one from stdlib.Matěj Cepl2020-06-051-3/+3
| |
* | Acommodate review requests.Matěj Cepl2020-06-051-5/+5
| |
* | Remove dependency on unittest2Matěj Cepl2018-09-131-11/+23
|/ | | | | | It is questionable whether it is actually the right way how to do it. I would need a review from somebody who actually understands API and the protocol, whether I am not unintentionally changing API.
* Add support for parsing in a regex to apply to test ids.Jelmer Vernooij2018-03-241-0/+16
| | | | Bug: pad.lv/1758522
* Check for ValueError in write only check in _unwrap_text()Matthew Treinish2017-09-251-0/+41
| | | | | | | | | | | | | | | | In the _unwrap_text() function it checks by trying to read or write to the stream to see if it's wrapped or not and return the buffer. The check there first tries to read and if an exception of the proper type is raised it will assume it was opened in write mode and proceed to check for a buffer by writing to the stram. However this check is missing an exception to check for. If a FileIO object is passed in on Python 2.7 (which can be the case sometimes for sys.stdout, although I haven't figured out under which circumstances) then a ValueError will be raised. [1] To enable using _unwrap_text() when a FileIO object is used this commit adds a ValueError to the list of exception types to handle this case. [1] https://github.com/python/cpython/blob/2.7/Modules/_io/fileio.c#L431
* Skip hypothesis tests on 3.2Robert Collins2015-10-201-10/+15
| | | | (It's not 3.2 compatible at the moment).
* Handle very short packetsRobert Collins2015-08-041-0/+14
| | | | Yay quickcheck.
* Add subunit2disk which exports a stream to the fs.Robert Collins2015-07-132-0/+51
|
* Handle pypy, Python 3.4 and 3.5 in tests.Robert Collins2015-07-132-9/+10
|
* Support --locals in tracebacks and release 1.1.01.1.0Robert Collins2015-03-101-6/+4
|
* Improve showing of import errors in the Python runner.Robert Collins2014-11-181-0/+12
| | | | This depends on testtools 1.4.0 to get the improved behaviour.
* Fix tests with testtools 1.2.0 and above.Robert Collins2014-11-181-2/+7
| | | | | Import errors don't break execution or listing now in testtools, so to test execution breaking we have to be a little bit more direct.
* 0.0.19Robert Collins2014-08-241-11/+35
| | | | | | | | | | | | ------ IMPROVEMENTS ~~~~~~~~~~~~ * ``subunit.run`` in Python will now exit 0 as long as the test stream has been generated correctly - this has always been the intent but API friction with testtools had prevented it working. (Robert Collins)
* Import matcher used.Thomi Richards2014-01-131-0/+1
|
* Fix failing test on py33.Thomi Richards2014-01-131-6/+4
|
* Fix failing test in python 3.2.Thomi Richards2013-12-161-1/+1
|
* Make tests work in py2 and py3.Thomi Richards2013-12-101-1/+5
|
* Don't make tests convert to and from bytes. Instead, just use a StreamResult ↵Thomi Richards2013-12-101-16/+48
| | | | double. Update test code.
* Generate scenarios inside subunit.tests.test_suite, not by subclassing ↵Thomi Richards2013-12-092-4/+7
| | | | WithScenarios.
* Don't need to patch stderr anymore in the tests.Thomi Richards2013-12-091-23/+10
|
* Allow the use of the --tag argument without specifying a test id.Thomi Richards2013-12-091-14/+17
|
* Use the 'append' action, instead of specifying tags as a comma-separated ↵Thomi Richards2013-12-091-8/+10
| | | | list of values.
* Patch sys.stdin correctly for testing.Thomi Richards2013-12-021-4/+4
|
* Fix failing tests.Thomi Richards2013-12-021-2/+2
|
* Fix failing tests.Thomi Richards2013-12-021-1/+1
|
* Merged trunk, fixed conflict.Thomi Richards2013-12-021-2/+12
|\