Files
pytest-xdist/testing/util.py
Ran Benita b78cf1c0ce Improve typing
Fix #1057
2024-04-15 23:30:17 +03:00

10 lines
131 B
Python

import warnings
class MyWarning2(UserWarning):
pass
def generate_warning() -> None:
warnings.warn(MyWarning2("hello"))