File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1010from astropy .utils import iers
1111
1212from pyuvdata import UVCal , UVData
13- from pyuvdata .datasets import fetch_data
13+ from pyuvdata .datasets import fetch_data , fetch_dict
1414from pyuvdata .testing import check_warnings
1515
1616
17+ def pytest_sessionstart (session ):
18+ """Download test data prior to test collection."""
19+ if getattr (session .config , "workerinput" , None ) is not None :
20+ # No need to download, the master process has already done that.
21+ return
22+
23+ # download all the test data now to avoid clashes when running parallel tests
24+ # this is especially an issue in Windows
25+ for dname in fetch_dict :
26+ fetch_data (dname )
27+
28+
1729@pytest .fixture (autouse = True , scope = "session" )
1830def setup_and_teardown_package ():
1931 """Handle possible IERS issues."""
You can’t perform that action at this time.
0 commit comments