summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix CHANGELOG.HEADmasterJohn Szakmeister2016-03-031-2/+5
| | | | --no-cover-print was added after 1.3.7.
* Merge pull request #983 from mitya57/masterJohn Szakmeister2016-02-024-0/+4
|\ | | | | Make tests work with Python ≥ 3.5
| * Travis: Add 3.5 to supported Python versionsDmitry Shachnev2016-02-011-0/+1
| |
| * Set __qualname__ equal to __name__ on derived classesDmitry Shachnev2016-02-013-0/+3
|/ | | | | | To make output on Python ≥ 3.5 the same as on previous Python versions. This fixes #928.
* Merge pull request #830 from Eric89GXL/no-printJohn Szakmeister2016-01-274-10/+24
|\ | | | | ENH: Allow not printing coverage report
| * FIX: Add simple testEric Larson2016-01-273-6/+24
| |
| * STY: No double negativeEric Larson2016-01-271-3/+3
| |
| * ENH: Allow not printing coverage reportEric Larson2016-01-273-23/+19
|/
* Merge pull request #977 from harrykao/multiprocess_loaderJohn Szakmeister2015-12-231-2/+2
|\ | | | | Use a new test loader for each queue item.
| * Use a new test loader for each queue item.Harry Kao2015-12-221-2/+2
|/ | | | | | | | | 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.
* Merge an amended version of #896.John Szakmeister2015-11-283-14/+108
|\ | | | | | | Adds an option to specify the location of the coverage config file.
| * Fix a coverage plugin test to work with newer versions of coverage.John Szakmeister2015-11-281-21/+38
| |
| * Adds an option to specify the location of the coverage config file.Brian Reinhart2015-11-283-14/+91
| |
* | Merge pull request #968 from joscha/add-prefix-parameterJohn Szakmeister2015-11-284-10/+102
|\ \ | |/ |/| Adds option to allow prefixing the class name in an xunit report
| * test: add test with custom class name prefixJoscha Feth2015-11-291-8/+25
| |
| * feat: adds an option that allows prefixing the class name in an xunit reportJoscha Feth2015-11-294-10/+85
|/
* doc: fix typoJohn Szakmeister2015-11-281-1/+1
|
* doc: add a note about nose skipping files marked executableJohn Szakmeister2015-11-281-2/+7
|
* Merge an amended version of #630.John Szakmeister2015-11-282-0/+16
|\ | | | | | | Fake stdout should always have an encoding attribute.
| * capture: copy encoding and errors from from sys.stdout, if availableJohn Szakmeister2015-11-281-2/+9
| |
| * fake stdout should always have encoding attributeMatt Chisholm2015-11-282-0/+9
|/ | | | 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.
* Merge an amended version of #945.John Szakmeister2015-11-282-6/+33
|\ | | | | | | Tee doesn't have encoding and errors attributes.
| * Skip distutils.log test if distutils.log is not available.John Szakmeister2015-11-281-2/+11
| |
| * BUG: Tee doesn't have encoding or errors attrs.Prabhu Ramachandran2015-08-272-6/+24
| | | | | | | | | | | | 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.
* | Merge pull request #948 from adamchainz/logcapture_propagate_falseJohn Szakmeister2015-11-282-0/+25
|\ \ | | | | | | Fix logcapture plugin to capture output from non-propagating loggers,…
| * | Fix logcapture plugin to capture output from non-propagating loggers, and to ↵Adam Chainz2015-09-042-0/+25
| |/ | | | | | | not output 'no handlers could be found' message
* | Merge an amended version of #876.John Szakmeister2015-11-281-25/+27
|\ \ | | | | | | | | | Ensure idfile is closed if an error occurs.
| * | testid: don't traceback if the idfile doesn't existJohn Szakmeister2015-11-281-27/+28
| | |
| * | Close idfile object in a finally clauseRenzo Lucioni2015-11-281-2/+3
| | |
* | | Merge pull request #967 from joscha/patch-1John Szakmeister2015-11-281-0/+15
|\ \ \ | |/ / |/| | docs: add information about how to (continuously) run a single test suite
| * | docs: add information about how to (continuously) run a single test suiteJoscha Feth2015-11-121-0/+15
| | |
* | | Merge pull request #951 from LewisHaley/fix-test-repr-with-mutable-argsJohn Szakmeister2015-11-282-29/+61
|\ \ \ | | | | | | | | Fix test repr with mutable args
| * | | case.{Function,Method}TestCase: deobfuscate references to self.arg_reprLewis Haley2015-11-101-29/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, both `FunctionTestCase` and `MethodTestCase` created local `arg` variables in their `__str__` methods. These variables were simply references to `self.arg_repr`, so this commit deobfuscates this reference by modifying the `_descriptors` method for each so that *only the test name* is returned and not the `arg_repr` also (renaming `_descriptors` to `_descriptor` in the process), and then referring to `self.arg_repr` directly. This makes the `__str__` easier to understand because it is immediately obvious that we're only dealing with the string-representation of the args and *not* the actual args themselves.
| * | | nose/case.{Function,Method}TestCase: have consistent __repr__Lewis Haley2015-10-161-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests were added in the previous commit which showed that modifying a mutable object given as an argument to a test case during the execution of the test case results in the __repr__ of the test case also changing (if the __repr__ of the object also changed). This was caused by creating a __repr__ of the test args on the fly, and because the summary line is printed *before* the test is executed and failure details are printed *after* the test is executed, this can result in the two lines having different __repr__s of the passed in arguments (see the previous commit message for an example of the output). This commit fixes the issue by storing a __repr__ of the argument tuple when the *TestCase is instantiated and using that to create all __repr__s of the *TestCase. Note that the `if` for when no args are given had to be changed because `repr(tuple())` is '()', which is truthy.
| * | | unit_tests/test_cases: add tests for {Function,Method}TestCase.__repr__Lewis Haley2015-10-161-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At present, if a mutable argument is changed during the execution of test case, then any printing of the test case object which occurs after the test has run will result in the argument being printed with a __repr__ of it's *new* state (assuming that its __repr__ is state-dependant). This is particularly confusing when debugging failing test cases because the summary lines and the failure-detail lines will show *different* __repr__s of the args, e.g. nose_weirdness.test_nose_is_weird(Foo(10), 0) ... FAIL ====================================================================== FAIL: nose_weirdness.test_nose_is_weird(Foo(0), 0) ---------------------------------------------------------------------- ... Ran 1 test in 0.001s FAILED (failures=1) This issue will be solved in the next commit.
* | | | Merge pull request #950 from kengruven/masterJohn Szakmeister2015-11-185-11/+13
|\ \ \ \ | |_|/ / |/| | | Fix NOSE_TESTMATCH default regex.
| * | | Fix OptBucket for Python 2.6Ken Harris2015-11-111-2/+3
| | | |
| * | | Escape backslashes for Sphinx, in OptBucketKen Harris2015-11-113-3/+5
| | | | | | | | | | | | | | | | | | | | This fixes the -m flag documentation for both the README.txt and nosetests.1 manpage.
| * | | Fix default testMatch in usage.txtKen Harris2015-11-113-5/+5
| | | | | | | | | | | | | | | | This fixes the top half of nosetests.1 and README.txt.
| * | | Update Config class docstring for 'testMatch'Ken Harris2015-09-241-1/+1
| | | |
| * | | Fix NOSE_TESTMATCH default regex.Ken Harris2015-09-152-4/+3
| | |/ | |/| | | | | | | See bug #11.
* | | doc: fix linkJohn Szakmeister2015-11-041-1/+1
| | |
* | | Add a note to users about the state of Nose.John Szakmeister2015-11-041-0/+9
| | |
* | | Merge pull request #940 from alexandre-figura/masterJohn Szakmeister2015-10-211-2/+0
|\ \ \ | | | | | | | | nose.suite: Clean up forgotten set_trace()
| * | | nose.suite: Clean up forgotten set_trace()Alexandre Figura2015-08-191-2/+0
| |/ /
* | | Update make help with a reference to the readme target.John Szakmeister2015-10-211-0/+1
| | |
* | | Merge pull request #957 from jszakmeister/fix-931John Szakmeister2015-10-212-2/+7
|\ \ \ | |_|/ |/| | Fix #931: duplicate __init__ modules can be picked up
| * | Fix #931: duplicate __init__ modules can be picked upJohn Szakmeister2015-10-202-2/+7
|/ / | | | | | | | | | | | | | | | | | | The short form here is that when setting up ignores, you may allow __init__.py to be included unexpectedly. Since we generally use loadTestsFromName(), the package should be imported first which will handle the __init__.py case. Therefore, let's always ignore it in the loadTestsFromDir() method. Just to make sure that we ignore the correct files, we need to run the entry name through src() to make sure we handle the situation correctly on other platforms (like Jython).
* | Merge pull request #954 from benpatterson/benp/fix-travis-buildsJohn Szakmeister2015-10-142-2/+6
|\ \ | |/ |/| [fix travis] Coverage 4.0 is available and is not supported in python 3.2
| * [fix-travis] Update requirements file to accommodate coverage 4.0 support ↵Ben Patterson2015-10-081-1/+3
| | | | | | | | levels.