(self, tmpdir)
| 934 | x.sysexec(class="st">"aksjdkasjd") |
| 935 | |
| 936 | def test_make_numbered_dir(self, tmpdir): |
| 937 | tmpdir.ensure(class="st">"base.not_an_int", dir=1) |
| 938 | for i in range(10): |
| 939 | numdir = local.make_numbered_dir( |
| 940 | prefix=class="st">"base.", rootdir=tmpdir, keep=2, lock_timeout=0 |
| 941 | ) |
| 942 | assert numdir.check() |
| 943 | assert numdir.basename == fclass="st">"base.{i}" |
| 944 | if i >= 1: |
| 945 | assert numdir.new(ext=str(i - 1)).check() |
| 946 | if i >= 2: |
| 947 | assert numdir.new(ext=str(i - 2)).check() |
| 948 | if i >= 3: |
| 949 | assert not numdir.new(ext=str(i - 3)).check() |
| 950 | |
| 951 | def test_make_numbered_dir_case(self, tmpdir): |
| 952 | class="st">"""make_numbered_dir does not make assumptions on the underlying |
nothing calls this directly
no test coverage detected