Helper function to create a file ``source.c`` in `dirname` that contains the string in `source`. Returns the file name
(source, dirname)
| 111 | |
| 112 | |
| 113 | def _convert_str_to_file(source, dirname): |
| 114 | """Helper function to create a file ``source.c`` in `dirname` that contains |
| 115 | the string in `source`. Returns the file name |
| 116 | """ |
| 117 | filename = dirname / 'source.c' |
| 118 | with filename.open('w') as f: |
| 119 | f.write(str(source)) |
| 120 | return filename |
| 121 | |
| 122 | |
| 123 | def _make_methods(functions, modname): |
no test coverage detected