Issue 11742

Title
FAIL: test_to_char_datetime (trytond.tests.test_backend.BackendTestCase)
Priority
bug
Status
need-eg
Nosy list
ced, udono
Assigned to
Keywords

Created on 2022-09-28.10:33:53 by udono, last changed 2 months ago by ced.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-09-28.10:57:16

Can not reproduce. to_char is a custom method we implement to be SQL standard compatible.

Author: [hidden] (udono) Tryton translator
Date: 2022-09-28.10:33:52

Tests for trytond 6.0.22 and sqlite3 3.34.1backend fails::

# set -e TRYTOND_CONFIG; set -e TRYTOND_DATABASE_URI; set -e DB_NAME; trytond/trytond/tests/run-tests.py -fvvvm
…
test_to_char_datetime (trytond.tests.test_backend.BackendTestCase)
Test TO_CHAR with datetime ... FAIL

======================================================================
FAIL: test_to_char_datetime (trytond.tests.test_backend.BackendTestCase)
Test TO_CHAR with datetime
----------------------------------------------------------------------
Traceback (most recent call last):
  File "trytond/trytond/tests/test_tryton.py", line 204, in wrapper
    result = func(*args, **kwargs)
  File "trytond/trytond/tests/test_backend.py", line 75, in test_to_char_datetime
    self.assertEqual(text, now.strftime('%Y%m%d %H:%M:%S.%f'))
AssertionError: '20220928 HH24:MI:SS.US' != '20220928 07:52:31.388596'
- 20220928 HH24:MI:SS.US
+ 20220928 07:52:31.388596


----------------------------------------------------------------------
Ran 667 tests in 16.078s

FAILED (failures=1, skipped=39)
History
Date User Action Args
2022-09-28 10:57:16cedsetmessages: + msg78364
nosy: + ced
status: unread -> need-eg
2022-09-28 10:33:53udonocreate

Showing 10 items. Show all history (warning: this could be VERY long)