(tmpdir, fsource)
| 109 | ], |
| 110 | ) |
| 111 | def test_compile_from_strings(tmpdir, fsource): |
| 112 | # Make sure we can compile str and bytes gh-12796 |
| 113 | with util.switchdir(tmpdir): |
| 114 | ret_val = numpy.f2py.compile(fsource, |
| 115 | modulename="test_compile_from_strings", |
| 116 | extension=".f90") |
| 117 | assert ret_val == 0 |