Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.
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

Description

@mweinelt

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions