(self, tmp_path, encoding)
| 279 | @pytest.mark.parametrize("encoding", |
| 280 | ['ascii', 'utf-8', 'utf-16', 'utf-32']) |
| 281 | def test_input_encoding(self, tmp_path, encoding): |
| 282 | # gh-635 |
| 283 | f_path = tmp_path / f"input_with_{encoding}_encoding.f90" |
| 284 | with f_path.open('w', encoding=encoding) as ff: |
| 285 | ff.write(""" |
| 286 | subroutine foo() |
| 287 | end subroutine foo |
| 288 | """) |
| 289 | mod = crackfortran.crackfortran([str(f_path)]) |
| 290 | assert mod[0]['name'] == 'foo' |
| 291 | |
| 292 | |
| 293 | @pytest.mark.slow |