summaryrefslogtreecommitdiff
path: root/_test/test_api_change.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2019-07-25 23:29:34 +0200
committerAnthon van der Neut <anthon@mnt.org>2019-07-25 23:29:34 +0200
commit7d50ad630dc3c4efff391008f3cd3cdd250cbacd (patch)
tree278e918166fc42fcf2dad4e5d639eb539e1598e6 /_test/test_api_change.py
parent83b2bbba61d2ada9911dc1d07a121b141c6857ef (diff)
downloadruamel.yaml-7d50ad630dc3c4efff391008f3cd3cdd250cbacd.tar.gz
split off C library into separate package0.16.0
Diffstat (limited to '_test/test_api_change.py')
-rw-r--r--_test/test_api_change.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/_test/test_api_change.py b/_test/test_api_change.py
index 3f3d411..b47a551 100644
--- a/_test/test_api_change.py
+++ b/_test/test_api_change.py
@@ -232,7 +232,7 @@ class TestOldAPI:
def test_duplicate_keys_02(self):
# Issue 165 unicode keys in error/warning
from ruamel.yaml import safe_load
- from ruamel.yaml.constructor import DuplicateKeyFutureWarning
+ from ruamel.yaml.constructor import DuplicateKeyError
- with pytest.warns(DuplicateKeyFutureWarning):
+ with pytest.raises(DuplicateKeyError):
safe_load('type: Doméstica\ntype: International')