()
| 24 | |
| 25 | |
| 26 | def test_errorfix_buggy(): |
| 27 | @library.python.windows.errorfix |
| 28 | def erroneous_func(): |
| 29 | gen_error_access_denied() |
| 30 | |
| 31 | with pytest.raises(OSError) as errinfo: |
| 32 | erroneous_func() |
| 33 | assert errinfo.value.errno == errno.EACCES |
| 34 | assert errinfo.value.filename == 'unknown/file' |
| 35 | assert isinstance(errinfo.value.strerror, six.string_types) |
| 36 | assert errinfo.value.strerror |
| 37 | |
| 38 | |
| 39 | def test_errorfix_explicit(): |
nothing calls this directly
no test coverage detected