Skip to content

Commit cff91d1

Browse files
committed
Support modern repr of BaseException
BaseException doesn't add trailing comma from version 3.7.0. Hence the test case without ',' is added as well. See also: https://bugs.python.org/issue30399
1 parent efae887 commit cff91d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class MySrv(zerorpc.Server):
215215
assert event.name == 'ERR'
216216
(msg,) = event.args
217217
print('msg only', msg)
218-
assert msg == "NameError('donotexist',)"
218+
assert msg in ("NameError('donotexist',)", "NameError('donotexist')")
219219

220220
client_events.close()
221221
srv.close()

0 commit comments

Comments
 (0)