(tmpdir)
| 21 | |
| 22 | |
| 23 | def test_ensure_other_create_error(tmpdir): |
| 24 | subdir = tmpdir.join('subdir"') |
| 25 | rcfile = subdir.join("rcfile") |
| 26 | |
| 27 | # trigger an oserror that isn't "directory already exists" |
| 28 | os.chmod(str(tmpdir), stat.S_IREAD) |
| 29 | |
| 30 | with pytest.raises(OSError): |
| 31 | ensure_dir_exists(str(rcfile)) |
| 32 | |
| 33 | |
| 34 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected