MCPcopy Index your code
hub / github.com/numpy/numpy / test_input_encoding

Method test_input_encoding

numpy/f2py/tests/test_crackfortran.py:281–290  ·  view source on GitHub ↗
(self, tmp_path, encoding)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

openMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected