Ensure makepyfile accepts utf-8 bytes as input (#2738)
(pytester: Pytester)
| 207 | |
| 208 | |
| 209 | def test_makepyfile_utf8(pytester: Pytester) -> None: |
| 210 | """Ensure makepyfile accepts utf-8 bytes as input (#2738)""" |
| 211 | utf8_contents = """ |
| 212 | def setup_function(function): |
| 213 | mixed_encoding = 'São Paulo' |
| 214 | """.encode() |
| 215 | p = pytester.makepyfile(utf8_contents) |
| 216 | assert "mixed_encoding = 'São Paulo'".encode() in p.read_bytes() |
| 217 | |
| 218 | |
| 219 | class TestInlineRunModulesCleanup: |
nothing calls this directly
no test coverage detected