Warn when a collected test module was imported too early, and fix three cases where it is - #15022
RonnyPfannschmidt wants to merge 5 commits into
Chronographer: Good to go
Great! This change has been recorded to the chronicles
See https://docs.pytest.org/en/latest/contributing.html#preparing-pull-requests for details.
Please, refer to the following document for more details on how to
craft a great change note for inclusion with your pull request:
https://docs.pytest.org/en/latest/contributing.html#preparing-pull-requests
Details
The following news fragments found: [<PatchedFile: changelog/1930.bugfix.1.rst>, <PatchedFile: changelog/1930.bugfix.2.rst>, <PatchedFile: changelog/1930.bugfix.3.rst>, <PatchedFile: changelog/1930.doc.rst>, <PatchedFile: changelog/1930.improvement.rst>]
Pattern: re.compile('changelog/(?P<issue_number>[^\\./]+)\.(?P<fragment_type>breaking|deprecation|feature|improvement|bugfix|vendor|doc|packaging|contrib|misc)(\.\d+)?(\.[^\\./]+)*\.rst$')