Commit 16fad2e
committed
TST: Fix test_pickle_load_from_subprocess in a dirty tree
For a ditry tree, `setuptools-scm` adds the date to the end of the
version. This test runs a subprocess and `subprocess_run_helper` will
set `SOURCE_DATE_EPOCH=0`, which forces the date to be 1970-01-01,
triggering a mismatched version warning on unpickle.
Since we aren't testing the version-compatibility warning, set
`SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MATPLOTLIB` in the subprocess call
so that versions match.
Also, set the `dist_name` parameter when querying setuptools-scm or it
won't check that environment variable.1 parent 08da740 commit 16fad2e
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
154 | 162 | | |
155 | 163 | | |
156 | 164 | | |
| |||
0 commit comments