Skip to content

test_from_timestamp_with_overflow_value test failing on Windows because of message mismatch #2999

Description

@dsimidzija

test_from_timestamp_with_overflow_value from test_utils.py is failing on Windows because the error message is different for some reason.

This is the output from Github Windows runners used to build a wheel from py310 to py314:

      def test_from_timestamp_with_overflow_value():
          value = 9223372036854775
  >       with pytest.raises(ValueError, match=r"out of range|year must be in 1\.\.9999"):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  E       AssertionError: Regex pattern did not match.
  E         Expected regex: 'out of range|year must be in 1\\.\\.9999'
  E         Actual message: 'Error converting value to datetime'

It's the same error as reported at the end of #2989.

marshmallow version used is 4.3.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions