summaryrefslogtreecommitdiff
path: root/_test/test_api_change.py
diff options
context:
space:
mode:
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')