Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | build: adjust the warning suppressions we need | Ned Batchelder | 2022-01-04 | 2 | -20/+1 |
| | |||||
* | refactor: no need to special-case spec.origin == "namespace" | Ned Batchelder | 2022-01-03 | 1 | -2/+1 |
| | | | | | Namespace packages used to have this value, but that was changed in 3.7: https://bugs.python.org/issue32305 | ||||
* | refactor: we no longer need to protect against UnicodeError, it was only on 3.6 | Ned Batchelder | 2022-01-03 | 1 | -7/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was the failure it was protecting against on Python 3.6: ``` ___________________________ ProcessTest.test_lang_c ____________________________ [gw0] linux -- Python 3.6.15 /home/runner/work/coveragepy/coveragepy/.tox/py36/bin/python self = <tests.test_process.ProcessTest object at 0x7fe57e63b198> @pytest.mark.skipif(env.PYPY, reason="PyPy is unreliable with this test") # Jython as of 2.7.1rc3 won't compile a filename that isn't utf-8. @pytest.mark.skipif(env.JYTHON, reason="Jython can't handle this test") def test_lang_c(self): # LANG=C forces getfilesystemencoding on Linux to 'ascii', which causes # failures with non-ascii file names. We don't want to make a real file # with strange characters, though, because that gets the test runners # tangled up. This will isolate the concerns to the coverage.py code. # https://github.com/nedbat/coveragepy/issues/533 self.make_file("weird_file.py", r""" globs = {} code = "a = 1\nb = 2\n" exec(compile(code, "wut\xe9\xea\xeb\xec\x01\x02.py", 'exec'), globs) print(globs['a']) print(globs['b']) """) self.set_environ("LANG", "C") out = self.run_command("coverage run weird_file.py") > assert out == "1\n2\n" E assert 'Traceback (m...ion by zero\n' == '1\n2\n' E - 1 E - 2 E + Traceback (most recent call last): E + File "/home/runner/work/coveragepy/coveragepy/coverage/files.py", line 149, in abs_file E + path = os.path.realpath(path) E + File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/posixpath.py", line 395, in realpath E + path, ok = _joinrealpath(filename[:0], filename, {}) E + File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/posixpath.py", line 429, in _joinrealpath E + if not islink(newpath): E + File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/posixpath.py", line 171, in islink E + st = os.lstat(path) E + UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-6: ordinal not in range(128) ``` | ||||
* | build: make upgrade | Ned Batchelder | 2022-01-03 | 4 | -7/+7 |
| | |||||
* | test: skip a test on 3.11 while bpo46225 is worked out | Ned Batchelder | 2022-01-03 | 1 | -0/+5 |
| | |||||
* | test(build): skip virtualenv tests on 3.11.0a3 (bpo 46028) | Ned Batchelder | 2022-01-02 | 1 | -0/+2 |
| | | | | | I'm hoping this will be fixed in 3.11.0a4 by https://github.com/python/cpython/pull/30144 | ||||
* | build(test): PyContracts doesn't work on 3.11 | Ned Batchelder | 2022-01-02 | 2 | -3/+5 |
| | | | | and I don't think it ever will. | ||||
* | refactor(build): Makefile organization and help | Ned Batchelder | 2022-01-01 | 1 | -22/+55 |
| | |||||
* | refactor: remove code that was only needed for Python 3.6 | Ned Batchelder | 2021-12-31 | 3 | -28/+8 |
| | |||||
* | build: drop Python 3.6 support | Ned Batchelder | 2021-12-31 | 14 | -31/+34 |
| | |||||
* | build: a make target to cog the workflows | Ned Batchelder | 2021-12-31 | 2 | -0/+7 |
| | |||||
* | build: make upgrade on python 3.7 | Ned Batchelder | 2021-12-31 | 8 | -65/+128 |
| | |||||
* | refactor: clean up mentions of coverage3 alias | Ned Batchelder | 2021-12-31 | 2 | -17/+16 |
| | |||||
* | build: use a sparse checkout for the reports repo | Ned Batchelder | 2021-12-30 | 1 | -10/+13 |
| | |||||
* | build: publish metacov differently | Ned Batchelder | 2021-12-28 | 2 | -53/+60 |
| | |||||
* | build: generate a metacov badge | Ned Batchelder | 2021-12-28 | 2 | -2/+20 |
| | |||||
* | build: no more codecov | Ned Batchelder | 2021-12-28 | 3 | -24/+2 |
| | |||||
* | build: need to use pypy-3.7 instead of pypy3 on GHAnedbat/pypy37 | Ned Batchelder | 2021-12-14 | 2 | -3/+3 |
| | |||||
* | docs: more description in balance_xdist_plugin.py | Ned Batchelder | 2021-12-11 | 1 | -3/+19 |
| | |||||
* | build: also build macos arm64 kits #1288 | Ned Batchelder | 2021-12-01 | 2 | -19/+30 |
| | |||||
* | build: make upgradenedbat/upgrade-with-kits | Ned Batchelder | 2021-11-30 | 9 | -16/+16 |
| | |||||
* | test(feat): track test times, and balance xdist workers | Ned Batchelder | 2021-11-28 | 5 | -51/+190 |
| | | | | In the end, this seems to only speed things up by about 5% | ||||
* | docs: fix some styling in the changelog | Ned Batchelder | 2021-11-26 | 1 | -2/+2 |
| | |||||
* | docs: fix link in the changelog | Ned Batchelder | 2021-11-26 | 1 | -1/+1 |
| | |||||
* | build: bump version | Ned Batchelder | 2021-11-26 | 2 | -1/+7 |
| | |||||
* | docs: prep for 6.26.2 | Ned Batchelder | 2021-11-26 | 4 | -7/+9 |
| | |||||
* | docs: sample html report | Ned Batchelder | 2021-11-26 | 11 | -1255/+1400 |
| | |||||
* | docs: tweak the description of --concurrency | Ned Batchelder | 2021-11-26 | 4 | -5/+8 |
| | |||||
* | docs: tweak the latest changelog entry | Ned Batchelder | 2021-11-26 | 1 | -3/+4 |
| | |||||
* | test(refactor): avoid full commands to speed tests | Ned Batchelder | 2021-11-26 | 2 | -199/+192 |
| | | | | Also btw, I think some of these tests are duplicative. | ||||
* | test(perf): shave a few seconds off the FailUnder tests | Ned Batchelder | 2021-11-26 | 1 | -12/+9 |
| | |||||
* | feat: multiple --concurrency values. #1012 #1082nedbat/multi-concurrency | Ned Batchelder | 2021-11-25 | 14 | -81/+195 |
| | |||||
* | build(docs): a target for running cog on the docs | Ned Batchelder | 2021-11-25 | 1 | -1/+3 |
| | |||||
* | test(fix): keep SourceIncludeOmitTest's from clobbering each other | Ned Batchelder | 2021-11-24 | 2 | -8/+23 |
| | | | | | | | | Because they cd'd into a folder in the shared source tree, their data files would collide, leading to flaky tests. Also, add a check that the tests collected some data, and add sys.path to the debug=trace output. | ||||
* | test(build): i've had the wrong -r character this whole time | Ned Batchelder | 2021-11-24 | 2 | -3/+3 |
| | | | | E means show summary of errors. e means nothing. :( | ||||
* | test(fix): skip tests that trip a specific Mac 3.9 eventlet bug | Ned Batchelder | 2021-11-24 | 2 | -0/+11 |
| | |||||
* | test(build): a better way to pin light-thread packages | Ned Batchelder | 2021-11-24 | 7 | -5/+31 |
| | | | | | Also, clearly indicate when we are skipping tests because the packages aren't available. | ||||
* | refactor: this is nicer as a set | Ned Batchelder | 2021-11-24 | 1 | -2/+2 |
| | |||||
* | build: use new setup-python caching | Ned Batchelder | 2021-11-24 | 4 | -0/+18 |
| | |||||
* | test(refactor): simplify the logic of writing subcover.pth | Ned Batchelder | 2021-11-21 | 1 | -4/+2 |
| | |||||
* | test(fix): remove the subcover.pth file when the main session ends | Ned Batchelder | 2021-11-21 | 1 | -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. | ||||
* | build: i ran mypy, so deal with .mypy_cache | Ned Batchelder | 2021-11-21 | 2 | -1/+2 |
| | |||||
* | test(refactor): if two skips apply, put the more significant reason closer ↵ | Ned Batchelder | 2021-11-21 | 2 | -2/+2 |
| | | | | to the def | ||||
* | debug: why can't we clean up the C extension on windows? | Ned Batchelder | 2021-11-21 | 2 | -4/+11 |
| | |||||
* | refactor: super-nit-picky tweaks from mypy | Ned Batchelder | 2021-11-21 | 2 | -3/+3 |
| | |||||
* | test(refactor): use pathlib for the pth files | Ned Batchelder | 2021-11-21 | 1 | -11/+9 |
| | |||||
* | test(fix): never delete the pth file | Ned Batchelder | 2021-11-21 | 1 | -4/+6 |
| | |||||
* | fix(test): make .pth files once per session | Ned Batchelder | 2021-11-21 | 3 | -70/+55 |
| | | | | | | | | | | | 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. | ||||
* | debug: see the output from run_in_venv | Ned Batchelder | 2021-11-21 | 1 | -0/+2 |
| | |||||
* | refactor(test): move unicode handling tests to individual test files | Ned Batchelder | 2021-11-20 | 4 | -85/+87 |
| | | | | Eight fewer sub-processes |