Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
irmen committed Jan 21, 2018
1 parent ba136f1 commit ca1319a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Pyro4/test/echoserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def error(self):
"""generates a simple exception without text"""
if self._verbose:
print("%s - error: generating exception" % time.asctime())
raise ValueError("expected valueerror from echoserver error()")
raise ValueError("expected error from echoserver error() method")

def error_with_text(self):
"""generates a simple exception with message"""
Expand Down
2 changes: 1 addition & 1 deletion tests/PyroTests/test_echoserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def testError(self):
tb = "".join(Pyro4.util.getPyroTraceback())
self.assertIn("Remote traceback", tb)
self.assertIn("ValueError", tb)
self.assertEqual("", str(x))
self.assertEqual("expected error from echoserver error() method", str(x))
try:
echo.error_with_text()
self.fail("expected exception")
Expand Down

0 comments on commit ca1319a

Please sign in to comment.