(self, pytester: Pytester)
| 621 | result.stdout.no_fnmatch_line("*INTERNAL*") |
| 622 | |
| 623 | def test_fixture_excinfo_leak(self, pytester: Pytester) -> None: |
| 624 | # on python2 sys.excinfo would leak into fixture executions |
| 625 | pytester.makepyfile( |
| 626 | """ |
| 627 | import sys |
| 628 | import traceback |
| 629 | import pytest |
| 630 | |
| 631 | @pytest.fixture |
| 632 | def leak(): |
| 633 | if sys.exc_info()[0]: # python3 bug :) |
| 634 | traceback.print_exc() |
| 635 | #fails |
| 636 | assert sys.exc_info() == (None, None, None) |
| 637 | |
| 638 | def test_leak(leak): |
| 639 | if sys.exc_info()[0]: # python3 bug :) |
| 640 | traceback.print_exc() |
| 641 | assert sys.exc_info() == (None, None, None) |
| 642 | """ |
| 643 | ) |
| 644 | result = pytester.runpytest() |
| 645 | assert result.ret == 0 |
| 646 | |
| 647 | |
| 648 | class TestRequestBasic: |
nothing calls this directly
no test coverage detected