Call codecs.open(*args, **kwargs) ignoring DeprecationWarning.
(*args, **kwargs)
| 26 | |
| 27 | |
| 28 | def codecs_open_no_warn(*args, **kwargs): |
| 29 | """Call codecs.open(*args, **kwargs) ignoring DeprecationWarning.""" |
| 30 | with warnings.catch_warnings(): |
| 31 | warnings.simplefilter("ignore") |
| 32 | return codecs.open(*args, **kwargs) |
| 33 | |
| 34 | def coding_checker(self, coder): |
| 35 | def check(input, expect): |
no test coverage detected
searching dependent graphs…