Show More
@@ -34,7 +34,7 b' jobs:' | |||||
34 | python -m pip install --upgrade pip setuptools wheel |
|
34 | python -m pip install --upgrade pip setuptools wheel | |
35 | python -m pip install --upgrade -e file://$PWD#egg=ipython[test] |
|
35 | python -m pip install --upgrade -e file://$PWD#egg=ipython[test] | |
36 | python -m pip install --upgrade --upgrade-strategy eager trio curio |
|
36 | python -m pip install --upgrade --upgrade-strategy eager trio curio | |
37 | python -m pip install --upgrade pytest pytest-trio 'matplotlib!=3.2.0' |
|
37 | python -m pip install --upgrade pytest pytest-cov pytest-trio 'matplotlib!=3.2.0' | |
38 | python -m pip install --upgrade check-manifest pytest-cov anyio |
|
38 | python -m pip install --upgrade check-manifest pytest-cov anyio | |
39 | - name: Check manifest |
|
39 | - name: Check manifest | |
40 | run: check-manifest |
|
40 | run: check-manifest | |
@@ -45,6 +45,6 b' jobs:' | |||||
45 | cp /tmp/.coverage ./ |
|
45 | cp /tmp/.coverage ./ | |
46 | - name: pytest |
|
46 | - name: pytest | |
47 | run: | |
|
47 | run: | | |
48 | pytest -v |
|
48 | pytest -v --cov --cov-report=xml | |
49 | - name: Upload coverage to Codecov |
|
49 | - name: Upload coverage to Codecov | |
50 | uses: codecov/codecov-action@v2 |
|
50 | uses: codecov/codecov-action@v2 |
@@ -247,13 +247,19 b' def test_interruptible_core_debugger():' | |||||
247 | else: |
|
247 | else: | |
248 | raise AssertionError("input() should only be called once!") |
|
248 | raise AssertionError("input() should only be called once!") | |
249 |
|
249 | |||
250 | with patch.object(builtins, "input", raising_input): |
|
250 | tracer_orig = sys.gettrace() | |
251 | debugger.InterruptiblePdb().set_trace() |
|
251 | try: | |
252 | # The way this test will fail is by set_trace() never exiting, |
|
252 | with patch.object(builtins, "input", raising_input): | |
253 | # resulting in a timeout by the test runner. The alternative |
|
253 | debugger.InterruptiblePdb().set_trace() | |
254 | # implementation would involve a subprocess, but that adds issues with |
|
254 | # The way this test will fail is by set_trace() never exiting, | |
255 | # interrupting subprocesses that are rather complex, so it's simpler |
|
255 | # resulting in a timeout by the test runner. The alternative | |
256 | # just to do it this way. |
|
256 | # implementation would involve a subprocess, but that adds issues | |
|
257 | # with interrupting subprocesses that are rather complex, so it's | |||
|
258 | # simpler just to do it this way. | |||
|
259 | finally: | |||
|
260 | # restore the original trace function | |||
|
261 | sys.settrace(tracer_orig) | |||
|
262 | ||||
257 |
|
263 | |||
258 | @skip_win32 |
|
264 | @skip_win32 | |
259 | def test_xmode_skip(): |
|
265 | def test_xmode_skip(): |
General Comments 0
You need to be logged in to leave comments.
Login now