diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-11-22 09:58:26 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-11-22 09:58:26 +0100 |
commit | 23d6a331f79cffc8a8210a5694b53b6491605fb0 (patch) | |
tree | ece760d3ab39a6a87ddf35e7f2457ac61df69f58 | |
parent | 2787d2382a4500936a94ba9a5e3821c4fad943b4 (diff) | |
download | qutebrowser-23d6a331f79cffc8a8210a5694b53b6491605fb0.tar.gz qutebrowser-23d6a331f79cffc8a8210a5694b53b6491605fb0.zip |
pakjoy: Fix test_elf.py
-rw-r--r-- | tests/unit/misc/test_elf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/misc/test_elf.py b/tests/unit/misc/test_elf.py index 88b984dcd..6ae23357c 100644 --- a/tests/unit/misc/test_elf.py +++ b/tests/unit/misc/test_elf.py @@ -9,7 +9,7 @@ import pytest import hypothesis from hypothesis import strategies as hst -from qutebrowser.misc import elf +from qutebrowser.misc import elf, binparsing from qutebrowser.utils import utils @@ -117,7 +117,7 @@ def test_find_versions(data, expected): ), ]) def test_find_versions_invalid(data, message): - with pytest.raises(elf.ParseError) as excinfo: + with pytest.raises(binparsing.ParseError) as excinfo: elf._find_versions(data) assert str(excinfo.value) == message @@ -132,5 +132,5 @@ def test_hypothesis(data): fobj = io.BytesIO(data) try: elf._parse_from_file(fobj) - except elf.ParseError as e: + except binparsing.ParseError as e: print(e) |