| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a subpackage is specified on the command line (e.g., `nosetests
foo.bar`), it should pick up all the tests below the subpackage.
The root of the problem came from how we resolved a filename for a
package. We should really point to the package directory, instead of
providing the path to the `__init__.py` file. Otherwise, we only end up
attempting to select modules from the `__init__.py` instead of the whole
tree underneath. We don't want to check for a path ending in
`__init__.py` in `loadTestsFromModule()` because then we select the
whole subtree of tests when `foo/bar/__init__.py` is specified when only
tests in the __init__.py should be selected.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The issue is when the parent and child have different attributes, and
the parent method was being bypassed because of the attribute selection.
In this case, Nose would incorrectly use the version from the base
class, even though it was supposed to skip the method entirely.
To fix this, we need simply need to stop digging through base classes.
The dir() method returns a flattened set of methods, so there's no need
to iterate through the base classes trying to dig up all the methods.
Moreover, it leads to false positives since we were not keeping track of
methods seen on the parent classes. As a result, we'd incorrectly
select a test for inclusion (using attributes), or we'd pick up a method
that we should've ignored (like runTest in a Twisted test case).
Thanks to Thomas Grainger for providing a test case!
|
|
|
|
|
|
|
| |
Twisted has updated trial to work better with unittest's test runner.
As a result, skipped tests are no longer reported as failures. Since
this is the desired result, fix the test to no longer expect a failure
for the skipped test. This was tested from Twisted 10.0 to 12.3.
|
|
|
|
| |
keyword to TestProgram subclass. Replaced _strclass which was removed from unittest. Adjusted some paths in doctests. TODO: looks like custom test descriptions is broken.
|
|
|
|
| |
python2.3-2.5 and jython. Updated ls_tree and svn:ignore to ignore $py.class files.
|
| |
|
|
|
|
| |
handling of reactors that caused twisted.trial tests run after twistedtools tests to hang or otherwise fail to report any outcome.
|
|
|
|
| |
classes to test run summary.
|
|
|
|
| |
returns success)
|
|
|
|
| |
sys.path also. Added functional test for lib/ src/ tests/ package layout.
|
| |
|
|
|
|
| |
tests to use canned config so they do not pick up settings from config files. Removed no longer appropriate unit tests.
|
| |
|
| |
|
|
|