File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -2857,26 +2857,6 @@ def wrapper(*args, **kwargs):
28572857 return func (* args , ** kwargs )
28582858 return wrapper
28592859
2860- def force_not_colorized_test_class (cls ):
2861- """Force the terminal not to be colorized."""
2862- original_setup = cls .setUp
2863- original_teardown = cls .tearDown
2864-
2865- @functools .wraps (cls .setUp )
2866- def setUp_wrapper (self , * args , ** kwargs ):
2867- self ._original_fn , self ._variables = _disable_terminal_color ()
2868-
2869- return original_setup (self , * args , ** kwargs )
2870-
2871- @functools .wraps (cls .tearDown )
2872- def tearDown_wrapper (self , * args , ** kwargs ):
2873- _re_enable_terminal_color (self ._original_fn , self ._variables )
2874- return original_teardown (self , * args , ** kwargs )
2875-
2876- cls .setUp = setUp_wrapper
2877- cls .tearDown = tearDown_wrapper
2878- return cls
2879-
28802860
28812861def force_not_colorized_test_class (cls ):
28822862 """Force the terminal not to be colorized for the entire test class."""
You can’t perform that action at this time.
0 commit comments