MCPcopy Create free account
hub / github.com/catboost/catboost / test_errorfix_buggy

Function test_errorfix_buggy

library/python/windows/ut/test_windows.py:26–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26def 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
39def test_errorfix_explicit():

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
erroneous_funcFunction · 0.70

Tested by

no test coverage detected