Merge pull request #8961 from FelixSchwarz/1.4-maint

tests: fix ZeroDivisionError msg test for py314 (for borg 1.4)
This commit is contained in:
TW 2025-07-24 23:56:35 +02:00 committed by GitHub
commit 89b627206e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -977,7 +977,7 @@ class RemoteRepositoryTestCase(RepositoryTestCase):
self.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