PythonfromNedbatchelder1 week agoWhy your mock breaks laterPatch mocks where the object is used, not where it's defined, to avoid unintended, global effects on other libraries and test infrastructure.
fromNedbatchelder2 weeks agoPythonThree releases, one new organizationCoverage.py's sys.monitoring default core caused conflicts with explicit concurrency settings, prompting rapid releases to adjust core selection and handle older Python versions.
PythonfromNedbatchelder3 months agoFinding unneeded pragmasA tool detects coverage.py exclusion pragmas that were executed, helping identify exclusions that may no longer be necessary.