mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
fix boilerplate test
Fixed AttributeError: type object '_io.StringIO' has no attribute 'StringIO'
This commit is contained in:
parent
9dc1da1e5b
commit
4473dfebbf
@ -40,7 +40,7 @@ class TestBoilerplate(unittest.TestCase):
|
|||||||
|
|
||||||
# capture stdout
|
# capture stdout
|
||||||
old_stdout = sys.stdout
|
old_stdout = sys.stdout
|
||||||
sys.stdout = StringIO.StringIO()
|
sys.stdout = StringIO()
|
||||||
|
|
||||||
boilerplate.args = Args()
|
boilerplate.args = Args()
|
||||||
ret = boilerplate.main()
|
ret = boilerplate.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user