summaryrefslogtreecommitdiff
path: root/tests/conftest.py
Commit message (Collapse)AuthorAgeFilesLines
* test(refactor): simplify the logic of writing subcover.pthNed Batchelder2021-11-211-4/+2
|
* test(fix): remove the subcover.pth file when the main session endsNed Batchelder2021-11-211-16/+20
| | | | | Leaving the pth file meant that the next igor run would start coverage, which meant igor couldn't delete the C extension file on Windows.
* test(refactor): use pathlib for the pth filesNed Batchelder2021-11-211-11/+9
|
* test(fix): never delete the pth fileNed Batchelder2021-11-211-4/+6
|
* fix(test): make .pth files once per sessionNed Batchelder2021-11-211-2/+49
| | | | | | | | | | | The old way, we made and deleted .pth file around each test. This caused problems because pth files are written to a common location shared by all test workers, so tests would fail because pth files were being deleted as other workers were trying to use them. Now we make the pth file once per session. There's still a chance that a worker will be using a pth file just as another worker is ending and removing it.
* test: properly reset a few globals between every testNed Batchelder2021-11-171-0/+17
|
* docs: document the exceptionsNed Batchelder2021-11-141-4/+4
| | | | ... and make some of them private.
* test: force VirtualenvTest onto one worker to save timeNed Batchelder2021-11-021-7/+50
| | | | | | | | | | | VirtualenvTest is slow because it has a session-scoped fixture that takes 10s to run. If all of those tests go to the same worker, we can reuse that fixture. If they go to different workers, we have to spend that time more than once. This is a hack which seems to work, but no guarantees into the future. Also, I don't know why the VirtualenvTests aren't run first on their worker. Time saved: about 10%, from ~50s to ~45s.
* debug: code we can enable to see where tests are running and in what orderNed Batchelder2021-10-301-1/+9
|
* test: we really don't want to hear about imp being deprecatedNed Batchelder2021-10-121-0/+5
|
* test: this xdist defensiveness now seems unneededNed Batchelder2021-10-081-26/+0
|
* build: update pylint and remove some unneeded warning suppressionNed Batchelder2021-07-181-15/+0
|
* test: better checking for CoverageWarningsNed Batchelder2021-05-311-1/+1
| | | | | On Python 3.10, we were getting other warnings mixed into the warnings the tests were looking for. This change lets us only look at the CoverageWarnings.
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-1/+1
|
* refactor: remove a few more version checksNed Batchelder2021-05-021-1/+1
|
* refactor: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-021-1/+1
|
* build: suppress new 3.10 warningsNed Batchelder2021-04-141-0/+11
|
* test: simplify how StopEverything is converted to skipnedbat/remove-unittest-testcaseNed Batchelder2021-03-111-0/+9
| | | | | | The auto-decorating metaclass was interfering with parameterized methods on Python 2.7. But we don't need it anymore anyway, since pytest will let us hook to deal with the exception in a simpler way.
* test: metacov is always xdistNed Batchelder2021-02-071-1/+1
|
* refactor: remove unittest.assertCountEqualNed Batchelder2021-02-061-0/+1
| | | | Another step toward removing unittest.TestCase.
* test: configure pytest assertion rewriting in coveragetest.pyNed Batchelder2021-01-311-0/+4
|
* Use the modern way to load modules by file name.Ned Batchelder2021-01-101-4/+15
| | | | | | | Python 3.10 finally got super-noisy about load_module, which has been deprecated since 3.4! https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module
* Adjust other env.PYPY tests to the latest wayNed Batchelder2019-12-311-1/+1
|
* Use pylint 2.xNed Batchelder2019-05-131-1/+0
|
* Silence a DeprecationWarningNed Batchelder2019-05-091-0/+5
| | | | | | "DeprecationWarning: Use inspect.signature() instead of inspect.getfullargspec()" This started appearing with Python 3.8a4.
* Move set_env.py to github.com/nedbat/oddsNed Batchelder2019-04-071-0/+3
|
* Suppress another warningNed Batchelder2018-12-231-0/+1
|
* Control the sys.path that tests seeNed Batchelder2018-11-251-0/+35
|
* Check for import orderNed Batchelder2018-09-131-1/+2
|
* Quiet a pylint warningNed Batchelder2018-06-301-0/+2
|
* ResourceWarning isn't in py2?Ned Batchelder2018-06-291-1/+1
|
* Suppress needless warnings during testsNed Batchelder2018-06-291-0/+14
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Enable DeprecationWarnings during testsNed Batchelder2017-10-121-0/+18