Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

test_json_default_encoder_with_timestamp fails on Python 3.13 #198

Open
mweinelt opened this issue Nov 14, 2024 · 1 comment
Open

test_json_default_encoder_with_timestamp fails on Python 3.13 #198

mweinelt opened this issue Nov 14, 2024 · 1 comment

Comments

@mweinelt
Copy link

Hi!

With Python 3.13 we're seeing the following test failure on 2.0.7.

___________ TestJsonLogger.test_json_default_encoder_with_timestamp ____________

self = <tests.test_jsonlogger.TestJsonLogger testMethod=test_json_default_encoder_with_timestamp>
time_mock = <MagicMock name='time' id='140737327591312'>

    @unittest.mock.patch('time.time', return_value=1500000000.0)
    def test_json_default_encoder_with_timestamp(self, time_mock):
        fr = jsonlogger.JsonFormatter(timestamp=True)
        self.log_handler.setFormatter(fr)

        self.log.info("Hello")

>       self.assertTrue(time_mock.called)
E       AssertionError: False is not true

tests/test_jsonlogger.py:185: AssertionError
@nhairs
Copy link

nhairs commented Nov 14, 2024

Hi @mweinelt,

Just so you're aware it looks like python-json-logger is currently unmaintained, that said I am working on a maintained fork which does have support for Python 3.13.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants