Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrameos committed Nov 29, 2024
1 parent 3764749 commit 67f732d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/jpypetest/test_fault.py
Original file line number Diff line number Diff line change
Expand Up @@ -1083,13 +1083,15 @@ def testStartupBadArg(self):
with self.assertRaisesRegex(TypeError, "takes exactly"):
_jpype.startup()
with self.assertRaisesRegex(TypeError, "must be tuple"):
_jpype.startup(object(), object(), True, True, True)
_jpype.startup(object(), object(), True, True, True, None)
with self.assertRaisesRegex(TypeError, "must be strings"):
_jpype.startup("", (object(),), True, True, True)
_jpype.startup("", (object(),), True, True, True, None)
with self.assertRaisesRegex(TypeError, "must be a string"):
_jpype.startup(object(), tuple(), True, True, True)
_jpype.startup(object(), tuple(), True, True, True, None)
with self.assertRaisesRegex(TypeError, "must be a string"):
_jpype.startup("", tuple(), True, True, True, object())
with self.assertRaisesRegex(OSError, "started"):
_jpype.startup("", tuple(), True, True, True)
_jpype.startup("", tuple(), True, True, True, None)

def testGetClass(self):
with self.assertRaisesRegex(TypeError, "not found"):
Expand Down

0 comments on commit 67f732d

Please sign in to comment.