Source: beancount
Version: 3.2.0-1
Severity: serious
Tags: ftbfs
User: [email protected]
Usertags: python3.14
self = <beancount.beancount.parser.lexer_test.TestLexer
testMethod=test_bad_date>
tokens = [('error', 1, b'2013-12-98', None), ('EOL', 2, b'\n', None)]
errors = [LexerError(source={'filename': '', 'lineno': 1}, message='ValueError:
day 98 must be in range 1..31 for month 12 in year 2013', entry=None)]
@lex_tokens
def test_bad_date(self, tokens, errors):
"""\
2013-12-98
"""
self.assertEqual(
[
("error", 1, b"2013-12-98", None),
("EOL", 2, b"\n", None),
],
tokens,
)
self.assertTrue(errors)
> self.assertRegex(errors[0].message, "out of range|month must be|day
must be in")
E AssertionError: Regex didn't match: 'out of range|month must be|day
must be in' not found in 'ValueError: day 98 must be in range 1..31 for month
12 in year 2013'
https://buildd.debian.org/status/fetch.php?pkg=beancount&arch=amd64&ver=3.2.0-1%2Bb1&stamp=1764939772&raw=0
-- System Information:
Debian Release: forky/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.17.7+deb14+1-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled