Help with a frustrating test fail - '0001-01' != '1-01'

12 views
Skip to first unread message

Nicholas Car

unread,
Jun 25, 2021, 9:17:51 PM6/25/21
to rdfli...@googlegroups.com
Hi all,

I've made a lot of documentation updates in PR 1296 [1] - making sure everything uses modern syntax and all examples work - but I can't get a particular test to pass [2]:

1748 ======================================================================
1749 FAIL: Tests literal construction.
1750 ----------------------------------------------------------------------
1751 Traceback (most recent call last):
1752 File "/drone/src/test/test_literal.py", line 229, in test_make_literals
1753 self.check_make_literals(inputs)
1754 File "/drone/src/test/test_literal.py", line 258, in check_make_literals
1755 self.assertEqual(lexical, str(literal))
1756 AssertionError: '0001-01' != '1-01'
1757 - 0001-01
1758 ? ---
1759 + 1-01

I can't work out what's causing the leading '000' to be dropped by the tests as run by Drone for they are working fine locally for Python 3.7 & 3.9.

Can anyone shed light on this string/formatting issue?

Thanks,

Nick



Reply all
Reply to author
Forward
0 new messages