summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-07-28 23:53:41 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-07-28 23:53:41 +0200
commitf9b50b606fe3f12b09dd36cb999238bf440d0cd1 (patch)
tree04a14e70240d7677ac84d95cd38f3cded4729091 /tox.ini
parent9f9266b31445296439cbcc9c0e3f01b4fb15ed8a (diff)
downloadruamel.yaml-f9b50b606fe3f12b09dd36cb999238bf440d0cd1.tar.gz
Resolving issue #210 deprecation warning in python 3.7
*When this change indeed resolves your problem, please **Close** this issue*. *(You can do so usingthe WorkFlow pull-down (close to the top right of this page)*
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini25
1 files changed, 21 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index 853902e..2f6b704 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,11 +1,10 @@
[tox]
-# toworkdir = /data1/DATA/tox/ruamel.yaml
-envlist = cs,py36,py27,py35,py34,pypy,py27m
+toworkdir = /data1/DATA/tox/ruamel.yaml
+envlist = cs,py37,py27,py36,py35,py34,pypy,py27m
[testenv]
commands =
- python -c "import sys, sysconfig; print('%s ucs-%s' % (sys.version.replace('\n', ' '), sysconfig.get_config_var('Py_UNICODE_SIZE')))"
- /bin/bash -c 'pytest _test/test_*.py'
+ /bin/bash -c 'pytest -ra _test/test_*.py'
deps =
pytest
flake8==2.5.5
@@ -19,6 +18,19 @@ basepython = python3.6
commands =
flake8 --exclude .tox,jabsy,jinja2,base,cmd,convert{posargs}
+# deprecation warning
+[testenv:dw]
+basepython = python3.7
+commands =
+ /bin/bash -c 'pytest _test/test_a*.py _test/test_z*.py'
+
+# deprecation warning fail
+[testenv:dwf]
+basepython = python3.7
+commands =
+ /bin/sed 's/collections.abc/collections/' -i .tox/dwf/lib/python3.7/site-packages/ruamel/yaml/comments.py
+ /bin/bash -c 'pytest --maxfail=2 _test/test_[a-vz]*.py'
+
[testenv:pep8]
basepython = python3.6
commands =
@@ -28,3 +40,8 @@ commands =
show-source = True
max-line-length = 95
exclude = _test/lib,.hg,.git,.tox,dist,.cache,__pycache__,ruamel.zip2tar.egg-info
+
+[pytest]
+filterwarnings =
+ error::DeprecationWarning
+ error::PendingDeprecationWarning