diff options
author | haixin <haixin@inspur.com> | 2020-09-30 15:26:27 +0800 |
---|---|---|
committer | haixin <haixin@inspur.com> | 2020-10-06 15:56:50 +0800 |
commit | 298c86f1e6f2c7e7feba63580b327542d40e8dad (patch) | |
tree | b08e4c65985b592552e33c836bff54623ab97117 /oslo_policy/tests/base.py | |
parent | 266ee36d3387247f8cbc57327a71f86a181fd45f (diff) | |
download | oslo-policy-298c86f1e6f2c7e7feba63580b327542d40e8dad.tar.gz |
Remove all usage of six library
Replace six with Python 3 style code.
Change-Id: I3d0c35e237484409d8410601ec482fac0dacf30d
Diffstat (limited to 'oslo_policy/tests/base.py')
-rw-r--r-- | oslo_policy/tests/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_policy/tests/base.py b/oslo_policy/tests/base.py index 670ef4b..698e4dd 100644 --- a/oslo_policy/tests/base.py +++ b/oslo_policy/tests/base.py @@ -14,6 +14,7 @@ # under the License. import codecs +import io import os import os.path import sys @@ -21,7 +22,6 @@ import sys import fixtures from oslo_config import fixture as config from oslotest import base as test_base -from six import moves from oslo_policy import _checks from oslo_policy import policy @@ -55,7 +55,7 @@ class PolicyBaseTestCase(test_base.BaseTestCase): f.write(contents) def _capture_stdout(self): - self.useFixture(fixtures.MonkeyPatch('sys.stdout', moves.StringIO())) + self.useFixture(fixtures.MonkeyPatch('sys.stdout', io.StringIO())) return sys.stdout |