mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-22 21:59:59 +00:00
## Problem The timestamp prefix of pytest log lines contains milliseconds without leading zeros, so values of milliseconds less than 100 printed incorrectly. For example: ``` 2025-02-15 12:02:51.997 INFO [_internal.py:97] 127.0.0.1 - - ... 2025-02-15 12:02:52.4 INFO [_internal.py:97] 127.0.0.1 - - ... 2025-02-15 12:02:52.9 INFO [_internal.py:97] 127.0.0.1 - - ... 2025-02-15 12:02:52.23 INFO [_internal.py:97] 127.0.0.1 - - ... ``` ## Summary of changes Fix log_format for pytest so that milliseconds are printed with leading zeros.
18 lines
490 B
INI
18 lines
490 B
INI
[pytest]
|
|
filterwarnings =
|
|
error::pytest.PytestUnhandledThreadExceptionWarning
|
|
error::UserWarning
|
|
ignore:record_property is incompatible with junit_family:pytest.PytestWarning
|
|
addopts =
|
|
-m 'not remote_cluster'
|
|
--ignore=test_runner/performance
|
|
markers =
|
|
remote_cluster
|
|
testpaths =
|
|
test_runner
|
|
minversion = 6.0
|
|
log_format = %(asctime)s.%(msecs)03d %(levelname)s [%(filename)s:%(lineno)d] %(message)s
|
|
log_date_format = %Y-%m-%d %H:%M:%S
|
|
log_cli = true
|
|
timeout = 300
|