From 4473dfebbf945e7b05e4de6367109c352cfa6b67 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 24 Jan 2024 10:42:16 +0200 Subject: [PATCH] fix boilerplate test Fixed AttributeError: type object '_io.StringIO' has no attribute 'StringIO' --- hack/boilerplate/boilerplate_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/boilerplate/boilerplate_test.py b/hack/boilerplate/boilerplate_test.py index 09ea600505d..d95194b2211 100644 --- a/hack/boilerplate/boilerplate_test.py +++ b/hack/boilerplate/boilerplate_test.py @@ -40,7 +40,7 @@ class TestBoilerplate(unittest.TestCase): # capture stdout old_stdout = sys.stdout - sys.stdout = StringIO.StringIO() + sys.stdout = StringIO() boilerplate.args = Args() ret = boilerplate.main()