This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Minimal reproduction of pytest plugin ordering bug where ResourceWarnings | |
| from session-end gc.collect() are silently lost. | |
| The unraisableexception plugin's cleanup (which forces GC) runs AFTER the | |
| warnings plugin's cleanup (which tears down filterwarnings), so any | |
| ResourceWarning emitted during session-end GC is never promoted to an error. | |
| Usage: | |
| python reproduce.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import inspect | |
| import pprint | |
| import textwrap | |
| from collections.abc import Iterable | |
| from dataclasses import asdict | |
| from dataclasses import field as dataclass_field | |
| from dataclasses import fields as dataclass_fields | |
| from dataclasses import make_dataclass | |
| import results |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import (absolute_import, division, print_function, | |
| unicode_literals) | |
| from sqlalchemy import Column, MetaData, Table, create_engine | |
| from sqlalchemy import String, Integer, Float, BigInteger, DateTime | |
| from sqlalchemy.schema import DropTable, CreateTable | |
| from sqlalchemy.orm import scoped_session, sessionmaker | |