Skip to content

Commit

Permalink
Update test to catch LowlevelError on bad arch path
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Jun 12, 2024
1 parent a959bbb commit 0fea846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ArchLanguage,
BadDataError,
Context,
DecoderError,
LowlevelError,
OpCode,
PcodeOp,
TranslateFlags,
Expand Down Expand Up @@ -56,7 +56,7 @@ def test_can_create_all_language_contexts(self):
def test_context_creation_failure(self):
lang = ArchLanguage.from_id("x86:LE:64:default")
bad_lang = ArchLanguage("/bad/arch/path", lang.ldef)
with self.assertRaises(DecoderError):
with self.assertRaises(LowlevelError):
Context(bad_lang)

def test_context_premature_release(self):
Expand Down

0 comments on commit 0fea846

Please sign in to comment.