todoman: test default due fails with assertionerror
Hi,
In the last update in Archlinux (updating from 2.0.2-1 to 2.1.0-1) I got the following failure while performing the test test_default_due2
________________________________________________ test_default_due2 _________________________________________________
tmpdir = local('/tmp/pytest-of-XXXXXX/pytest-9/test_default_due20')
runner = <click.testing.CliRunner object at 0x7f9b9d3f4f60>
create = <function create.<locals>.inner at 0x7f9ba0de31e0>
default_database = <todoman.model.Database object at 0x7f9b9d3f4b00>
@freeze_time(datetime.datetime.now())
def test_default_due2(tmpdir, runner, create, default_database):
cfg = tmpdir.join('config')
cfg.write('default_due = 24\n', 'a')
r = runner.invoke(cli, ['new', '-ldefault', '-dtomorrow', 'aaa'])
> assert not r.exception
E assert not InvalidArgsError(<class 'icu.SimpleDateFormat'>, 'format', (FakeDatetime(2003, 10, 30, 11, 45),))
E + where InvalidArgsError(<class 'icu.SimpleDateFormat'>, 'format', (FakeDatetime(2003, 10, 30, 11, 45),)) = <Result InvalidArgsError(<class 'icu.SimpleDateFormat'>, 'format', (FakeDatetime(2003, 10, 30, 11, 45),))>.exception
tests/test_basic.py:225: AssertionError
================================== 1 failed, 45 passed, 3 xfailed in 2.71 seconds ==================================
I’m not sure what’s going wrong, maybe this can be helpful for you.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (10 by maintainers)
For anyone wanting to look into this: I’d add a
tox
environment, that runs the entire test suite withpyicu
as an extra requirement, so we’re sure we never regress on this again.