(pytester: Pytester, method: str)
| 99 | |
| 100 | @pytest.mark.parametrize("method", ["fd", "sys"]) |
| 101 | def test_capturing_unicode(pytester: Pytester, method: str) -> None: |
| 102 | obj = "'b\u00f6y'" |
| 103 | pytester.makepyfile( |
| 104 | """\ |
| 105 | # taken from issue 227 from nosetests |
| 106 | def test_unicode(): |
| 107 | import sys |
| 108 | print(sys.stdout) |
| 109 | print(%s) |
| 110 | """ |
| 111 | % obj |
| 112 | ) |
| 113 | result = pytester.runpytest("--capture=%s" % method) |
| 114 | result.stdout.fnmatch_lines(["*1 passed*"]) |
| 115 | |
| 116 | |
| 117 | @pytest.mark.parametrize("method", ["fd", "sys"]) |
nothing calls this directly
no test coverage detected