| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |\ |
|
| |\ \ |
|
| |\ \ \ |
|
| |\ \ \ \ |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This commit switches from using scripts to setuptools entrypoint console
scripts for the filter scripts. This should fix the issues for windows
users trying to execute the scripts. To accomplish this the filter
scripts are moved into the subunit package namespace and a callable to
run the script is added to each module.
Closes-Bug: #1322888
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
That's the only major version subunit supports, and some platforms still ship with /usr/bin/python==python2
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This simplifies tests by making the output more reproducible.
|
| |_|_|_|/
|/| | | |
| | | | |
| | | | | |
We shouldn't rely on testtools.testcase importing it.
|
|\ \ \ \ \
| | |_|_|/
| |/| | | |
|
| |\ \ \ \ |
|
| | |_|_|/
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Resolves the following warnings in Python 3.6+:
DeprecationWarning: invalid escape sequence \!
match = re.match("Bail out\!(?:\s*(.*))?\n", line)
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
|
|\ \ \ \ \
| | |/ / /
| |/| | | |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
Add options to output filter to set timestamps
|
| | | | |
|
| | |/
| |/|
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Remove dependency on unittest2
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| |/ /
|/| |
| | |
| | | |
Signed-off-by: Jelmer Vernooij <jelmer@jelmer.uk>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Python3's RawIOBase guarantees only one syscall per read() requiring
a loop to accumulate the desired number of bytes or actually reach EOF.
TextIOBase.read does issue multiple syscalls (it must to correctly decode
partial unicode characters), but subunit unwraps that to get a binary stream,
and at least some of the time the layering is io.TextIOBase(_io.FileIO), where
_io.FileIO is a RawIOBase subclass rather than BufferedIOBase.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Partial-bug: #1813147
|
| |/
|/|
| |
| | |
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Because purely written streams could return None instead of written
bytes, we cannot sum them to offset integer. On such case let
assume data has been written all at once.
This fixes LaunchPad [#1845631](https://bugs.launchpad.net/subunit/+bug/1845631)
|
|/
|
|
|
| |
At python3 there is no "file" the "open" function has to be use to open
a file.
|
| |
|
|
|
|
| |
Bug: pad.lv/1758522
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
select.select does not work on file descriptors on Windows, causing subunit to fail.
|