summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-10-14 09:05:07 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-10-14 09:05:25 +0200
commit1547a48e6f1a8af8dc618d5afe858084ebfd317f (patch)
tree9354ef607653ce7c0ae387db41dfa5c1d60aee2b
parent4b86ae07eb1c74420714c5182629deb94fdc5477 (diff)
downloadqutebrowser-1547a48e6f1a8af8dc618d5afe858084ebfd317f.tar.gz
qutebrowser-1547a48e6f1a8af8dc618d5afe858084ebfd317f.zip
tests: Adjust for PyYAML 6.0
-rw-r--r--tests/unit/utils/test_utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/utils/test_utils.py b/tests/unit/utils/test_utils.py
index 57adc883c..330ef3b96 100644
--- a/tests/unit/utils/test_utils.py
+++ b/tests/unit/utils/test_utils.py
@@ -809,8 +809,11 @@ class TestYaml:
assert utils.yaml_load("[1, 2]") == [1, 2]
def test_load_float_bug(self):
- with pytest.raises(yaml.YAMLError):
+ try:
utils.yaml_load("._")
+ except yaml.YAMLError:
+ # Either no exception or YAMLError, not ValueError
+ pass
def test_load_file(self, tmp_path):
tmpfile = tmp_path / 'foo.yml'