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

Faster image comparison decorator by mdboom · Pull Request #98 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
4 changes: 2 additions & 2 deletions lib/matplotlib/testing/decorators.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 @@ -68,7 +68,7 @@ def test(self):
def cleanup(func):
name = func.__name__
func = staticmethod(func)
func.__func__.__name__ = '_private'
func.__get__(1).__name__ = '_private'
new_class = new.classobj(
name,
(CleanupTest,),
Expand Down Expand Up @@ -166,7 +166,7 @@ def compare_images_decorator(func):
# well, outside of the context of our image comparison test
# generator.
func = staticmethod(func)
func.__func__.__name__ = '_private'
func.__get__(1).__name__ = '_private'
new_class = new.classobj(
name,
(ImageComparisonTest,),
Expand Down

Back | FazBrowse Home | New Git URL