(fn)
| 851 | fn = os.path.join(TEST_DATA_DIR, filename) |
| 852 | |
| 853 | def check_valid_file(fn): |
| 854 | f = open(fn, *args, **kw) |
| 855 | if check is None: |
| 856 | return f |
| 857 | elif check(f): |
| 858 | f.seek(0) |
| 859 | return f |
| 860 | f.close() |
| 861 | |
| 862 | if os.path.exists(fn): |
| 863 | f = check_valid_file(fn) |
no test coverage detected
searching dependent graphs…