Skip to content

Commit

Permalink
Only assert 7 hex digits, not 8
Browse files Browse the repository at this point in the history
The CI failed when a 7-digit hex code did not match the expectation.
  • Loading branch information
ctrueden committed May 9, 2024
1 parent 755e133 commit e610df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_jimport(self):
assert str(Object)
o = Object()
assert scyjava.jinstance(o, "java.lang.Object")
assert re.match("java.lang.Object@[0-9a-f]{8}", str(o.toString()))
assert re.match("java.lang.Object@[0-9a-f]{7}", str(o.toString()))

def test_jinstance(self):
"""
Expand Down

0 comments on commit e610df8

Please sign in to comment.