make_numbered_dir does not make assumptions on the underlying filesystem based on the platform and will assume it _could_ be case insensitive. See issues: - https://github.com/pytest-dev/pytest/issues/708 - https://github.com/pytest-dev/pytest/issues/3451
(self, tmpdir)
| 949 | assert not numdir.new(ext=str(i - 3)).check() |
| 950 | |
| 951 | def test_make_numbered_dir_case(self, tmpdir): |
| 952 | """make_numbered_dir does not make assumptions on the underlying |
| 953 | filesystem based on the platform and will assume it _could_ be case |
| 954 | insensitive. |
| 955 | |
| 956 | See issues: |
| 957 | - https://github.com/pytest-dev/pytest/issues/708 |
| 958 | - https://github.com/pytest-dev/pytest/issues/3451 |
| 959 | """ |
| 960 | d1 = local.make_numbered_dir( |
| 961 | prefix="CAse.", |
| 962 | rootdir=tmpdir, |
| 963 | keep=2, |
| 964 | lock_timeout=0, |
| 965 | ) |
| 966 | d2 = local.make_numbered_dir( |
| 967 | prefix="caSE.", |
| 968 | rootdir=tmpdir, |
| 969 | keep=2, |
| 970 | lock_timeout=0, |
| 971 | ) |
| 972 | assert str(d1).lower() != str(d2).lower() |
| 973 | assert str(d2).endswith(".1") |
| 974 | |
| 975 | def test_make_numbered_dir_NotImplemented_Error(self, tmpdir, monkeypatch): |
| 976 | def notimpl(x, y): |
nothing calls this directly
no test coverage detected