FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

TST: Use correct method of clearing mock objects by QuLogic · Pull Request #31153 · matplotlib/matplotlib · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
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
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def _impl_test_interactive_timers():
assert mock.call_count > 1

# Now turn it into a single shot timer and verify only one gets triggered
mock.call_count = 0
mock.reset_mock()
timer.single_shot = True
timer.start()
plt.pause(pause_time)
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_colors.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
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,7 @@ def test_norm_callback():
assert increment.call_count == 2

# We only want autoscale() calls to send out one update signal
increment.call_count = 0
increment.reset_mock()
norm.autoscale([0, 1, 2])
assert increment.call_count == 1

Expand Down

Back | FazBrowse Home | New Git URL