Skip to content

CI fails after release of pytest 8.0.0 #6893

@dchigarev

Description

@dchigarev

https://github.com/modin-project/modin/actions/runs/7697508576/job/20974753158?pr=6862

the following code fails starting with pytest 8.0.0 (example in our tests)

import pytest
import warnings

try:
    with pytest.warns(UserWarning, match="Warning"):
        raise TypeError("Hello")
        warnings.warn("Warning", UserWarning)
        x = 10
except TypeError:
    pass

# Failed: DID NOT WARN. No warnings of type (<class 'UserWarning'>,) were emitted.
#  Emitted warnings: [].

Metadata

Metadata

Assignees

Labels

P0Highest priority tasks requiring immediate fixTesting 📈Issues related to testing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions