示例#1
0
def test_eexist_ok_raises(tmpdir):
    with pytest.raises(OSError):
        # This error isn't supressed because its a different error
        with eexist_is_ok():
            os.unlink(tmpdir.strpath)
示例#2
0
def test_eexist_ok_raises(tmpdir):
    with pytest.raises(OSError):
        # This error isn't supressed because its a different error
        with eexist_is_ok():
            os.unlink(tmpdir.strpath)
示例#3
0
def test_eexist_ok():
    with eexist_is_ok():
        os.mkdir(os.getcwd())
示例#4
0
def test_eexist_ok():
    with eexist_is_ok():
        os.mkdir(os.getcwd())