mirror of
https://github.com/borgbackup/borg.git
synced 2026-02-20 00:10:35 -05:00
tests: fix ZeroDivisionError msg test for py314, fixes #8913
This commit is contained in:
parent
9530f31e5f
commit
eaca4a6c4a
2 changed files with 2 additions and 2 deletions
|
|
@ -976,7 +976,7 @@ def test_remote_rpc_exception_transport(remote_repository):
|
|||
remote_repository.call("inject_exception", {"kind": "divide"})
|
||||
except LegacyRemoteRepository.RPCError as e:
|
||||
assert e.unpacked
|
||||
assert e.get_message() == "ZeroDivisionError: integer division or modulo by zero\n"
|
||||
assert e.get_message().startswith("ZeroDivisionError:")
|
||||
assert e.exception_class == "ZeroDivisionError"
|
||||
assert len(e.exception_full) > 0
|
||||
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ def test_remote_rpc_exception_transport(remote_repository):
|
|||
remote_repository.call("inject_exception", {"kind": "divide"})
|
||||
except RemoteRepository.RPCError as e:
|
||||
assert e.unpacked
|
||||
assert e.get_message() == "ZeroDivisionError: integer division or modulo by zero\n"
|
||||
assert e.get_message().startswith("ZeroDivisionError:")
|
||||
assert e.exception_class == "ZeroDivisionError"
|
||||
assert len(e.exception_full) > 0
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue