| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
The loader's ContextSuiteFactory keeps a reference to all of the test
suites, even after they've been run, which consumes more and more
memory over time.
This change creates a new loader for each suite that's dispatched to
the worker, which allows the GC to free the old test suites.
|
|\
| |
| |
| | |
Adds an option to specify the location of the coverage config file.
|
| | |
|
|/ |
|
| |
|
|
|
|
| |
Some programs expect this attribute, and use it to encode strings before writing to stdout. If it's not there, they fail with an AttributeError.
|
|\
| |
| |
| | |
Tee doesn't have encoding and errors attributes.
|
| |
| |
| |
| |
| |
| | |
On Python3, distutils.log uses the encoding and errors attribute of
sys.stdout and stderr. Tests error out when nose is run with xunit and
it replaces the stdout/stderr with a Tee.
|
|\ \
| | |
| | | |
Fix logcapture plugin to capture output from non-propagating loggers,…
|
| |/
| |
| |
| | |
not output 'no handlers could be found' message
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
| |
http://nose.readthedocs.org/en/latest/plugins/builtin.html
Docs says that we should load builtin plugins first and entry point
second to override builtin.
We also should be aware of breaking someone compatibility, cause
builtin plugin overriding feature was introduced Jan 20, 2010 and was
broken on Nov 12, 2011, so it's a fix to a long-lived bug.
|
|\
| |
| | |
[plugins] Handle multiprocess & cover together
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Added command line parameter in Xunit plug-in to specify test suite
name. Also added functional test case.
Incorporated Comments
|
|/
|
|
|
|
|
|
| |
This would occur by running `nosetests --with-id` with a newer version
of Python, and then run again with an older version of Python who
doesn't recognize the pickle format. In this case, let's simply ignore
the file, and move on allowing nosetests to overwrite it after gathering
the data again.
|
|\
| |
| | |
Recognize doctest options defined in other plugins.
|
| | |
|
|\ \
| | |
| | | |
Fix typo in log capture help
|
| |/ |
|
|/ |
|
|
|
|
|
| |
Since the creation of the file has been delayed, we need the full path
to the file since --where will change our current working directory.
|
| |
|
|
|
|
| |
Regenerate the man page too.
|
|
|
|
|
| |
Under Jython this step fails badly and tanks Nose. Instead, emit a
warning about the failure to create the coverage reports, and move on.
|
|\
| |
| | |
Instruct coverage instance to cover requested packages only.
|
| | |
|
|\ \
| | |
| | | |
Fixed issue with builtin filtering.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The superclass (which ultimately inherits from 'Handler')
checks against any registered filters, before allowing a
logging record. Nose's logging capture plugin should do the
same, because these filters are allowed to modify the record.
And it can easily happen that the logging format requires
this modification (e.g. add an attribute).
|
|\ \
| | |
| | | |
Look for unittest2 in skip plugin
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If unittest2 is available, try to use its SkipTest class rather than a
nose internal version. Inspired by better integration with testtools
for older python releases (see [1]).
[1] https://review.openstack.org/#/c/33056/
|
|\ \ \
| | | |
| | | | |
Fixes issue #749.
|
| | | | |
|
|\ \ \ \
| |_|_|/
|/| | |
| | | |
| | | | |
Fixes some unicode errors/handling in several areas of Nose.
A special thanks to Thomas Kluyver (@takluyver) for all the reviews while getting this together.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
In this case, the exception vector being passed in was a string that
contained encoded UTF-8 sequences. It was being converted to unicode
implicitly, which was raising a UnicodeDecodeError because some bytes
were >= 128. Make sure the exception string is converted to unicode
before trying to put the whole thing together.
Thanks to Guillaume Ayoub for the test case.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
While we're at it, teach format_exception() to use the new
exc_to_unicode() helper derived from work done in capture.py.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It turns out that `Xunit` was very mix-brained about how to formulate
the blocks ultimately used for generating the report. In some parts,
the expectation was to put unicode strings into the blocks, and in
others it would insert encoded strings along with unicode strings into
the blocks. It's the latter that was ultimately causing the issue.
In particular, `_quoteattr` would sometimes receive a unicode string,
and then it would get translated into UTF-8. Then, it would get
inserted into a unicode string, which would cause Python to try and turn
the UTF-8 encoded string back into a unicode one, but it would default
to the ascii codec and fail.
This makes us use unicode everywhere, sometimes forcing the data into
unicode with replacement.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
BaseException didn't exist until Python 2.5. Let's create a helper in
pyversion to check whether we're derived from BaseException on Python
2.5 or better, and just Exception on Python 2.4.
|
|/ / / |
|
| | | |
|
| |/
|/| |
|
|\ \
| | |
| | | |
Fix xunit when writing unicode to stdout and stderr.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
It turns out we were trying to write unicode strings into a
cStringIO.StringIO object, which doesn't work well with unicode strings.
Instead, lets use StringIO.StringIO objects for capturing stdout and
stderr.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fix #649: UnicodeDecodeError when an exception contains encoded strings
|