Skip to content

Commit

Permalink
FIX: remove IPython-pin, add asyncio-loop_policy
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Sep 29, 2020
1 parent 58da60c commit a4f8532
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ install:
- "activate wradlib"

# Install wradlib dependecies
- "conda install -y -q %MKL% gdal numpy scipy matplotlib netcdf4 h5py h5netcdf xarray dask cartopy deprecation xmltodict coverage codecov pytest pytest-cov pytest-xdist pytest-sugar notebook nbconvert ipython=7 psutil tqdm"
- "conda install -y -q %MKL% gdal numpy scipy matplotlib netcdf4 h5py h5netcdf xarray dask cartopy deprecation xmltodict coverage codecov pytest pytest-cov pytest-xdist pytest-sugar notebook nbconvert psutil tqdm"

# Some checks
- "python -VV"
Expand Down
5 changes: 5 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ def from_parent(cls, parent, name):
def runtest(self):
cur_dir = os.path.dirname(self.fspath)

# See https://bugs.python.org/issue37373
if sys.version_info[0] == 3 and sys.version_info[1] >= 8 and sys.platform.startswith('win'):
import asyncio
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

with self.fspath.open() as f:
nb = nbformat.read(f, as_version=4)
try:
Expand Down

0 comments on commit a4f8532

Please sign in to comment.