diff --git a/.travis.yml b/.travis.yml index cb98356c4289..39787104e42c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,7 @@ env: python: - 3.5 - 3.6 + - 3.8-dev matrix: include: - python: 3.7 diff --git a/numpy/core/tests/test_deprecations.py b/numpy/core/tests/test_deprecations.py index 6d71fcbd658e..58ebea024ba7 100644 --- a/numpy/core/tests/test_deprecations.py +++ b/numpy/core/tests/test_deprecations.py @@ -101,7 +101,7 @@ def assert_deprecated(self, function, num=1, ignore_others=False, (self.warning_cls.__name__, warning.category)) if num is not None and num_found != num: msg = "%i warnings found but %i expected." % (len(self.log), num) - lst = [str(w.category) for w in self.log] + lst = [str(w) for w in self.log] raise AssertionError("\n".join([msg] + lst)) with warnings.catch_warnings(): diff --git a/tools/travis-before-install.sh b/tools/travis-before-install.sh index b1c1f2ca1c37..448273db022e 100755 --- a/tools/travis-before-install.sh +++ b/tools/travis-before-install.sh @@ -36,6 +36,6 @@ fi pip install --upgrade pip setuptools -pip install nose pytz cython pytest +pip install pytz cython pytest if [ -n "$USE_ASV" ]; then pip install asv; fi popd