diff options
Diffstat (limited to 'Lib/importlib/test/frozen/support.py')
-rw-r--r-- | Lib/importlib/test/frozen/support.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Lib/importlib/test/frozen/support.py b/Lib/importlib/test/frozen/support.py deleted file mode 100644 index e08b89e..0000000 --- a/Lib/importlib/test/frozen/support.py +++ /dev/null @@ -1,24 +0,0 @@ -import sys - - -class Null: - - """Just absorb what is given.""" - - def __getattr__(self): - return lambda *args, **kwargs: None - - -class SilenceStdout: - - """Silence sys.stdout.""" - - def setUp(self): - """Substitute sys.stdout with something that does not print to the - screen thanks to what bytecode is frozen.""" - sys.stdout = Null() - super().setUp() - - def tearDown(self): - sys.stdout = sys.__stdout__ - super().tearDown() |