Repository navigation
Commit f3e8009
committed
Give the corrupt-history tests their own temp files
test_history_file_bad_compression and test_history_file_bad_json wrote to
a fixed /tmp/doesntmatter, which on the Windows runner is D:\tmp and does
not exist on a fresh machine. They passed only when the preceding
permission-error test had already run: mocking builtins.open there does not
stop the history setup from creating the file's parent directory, so that
test created D:\tmp as a side effect. Under xdist the order is not fixed,
and adding tests elsewhere shifted the schedule so both writers reached a
worker first and failed on every Windows job.
All three tests now use tmp_path, so none depends on a directory existing
or on another test having run. Each passes alone on a single worker.
Validation: 2587 passed, 6 skipped with coverage; make check, make test,
make docs-test and git diff --check passed.1 parent 08c7355 commit f3e8009
1 file changed
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
913 | | - | |
| 913 | + | |
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
917 | | - | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
918 | 921 | | |
919 | 922 | | |
920 | 923 | | |
921 | 924 | | |
922 | 925 | | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
927 | 929 | | |
928 | | - | |
| 930 | + | |
929 | 931 | | |
930 | 932 | | |
931 | 933 | | |
932 | 934 | | |
933 | 935 | | |
934 | | - | |
| 936 | + | |
935 | 937 | | |
936 | 938 | | |
937 | 939 | | |
938 | 940 | | |
939 | 941 | | |
940 | | - | |
941 | | - | |
942 | | - | |
| 942 | + | |
| 943 | + | |
943 | 944 | | |
944 | | - | |
| 945 | + | |
945 | 946 | | |
946 | 947 | | |
947 | 948 | | |
| |||
0 commit comments