-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor pytest plugin to not monkey patch call_runtest_hook. (#157)
A previous refactor (#74) enabled this, but I didn't notice. Previously, flaky stored information about test reruns inside a CallInfo subclass. call_runtest_hook was monkey patched so that flaky could ensure that subclass was created. #74 moved that info into the plugin, so the monkey patch was no longer doing anything special. However, over time, flaky's implementation diverged from pytest's. This caused #139 and #156. This commit removes the monkey patch, and flaky now uses pytest's implementation, which fixes those issues and is more future proof.
- Loading branch information
1 parent
8f848f8
commit 1613953
Showing
3 changed files
with
26 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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