fix boilerplate test

Fixed AttributeError: type object '_io.StringIO' has no attribute 'StringIO'
This commit is contained in:
Ed Bartosh 2024-01-24 10:42:16 +02:00
parent 9dc1da1e5b
commit 4473dfebbf

View File

@ -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()