diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-07 15:41:54 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-08 14:50:01 +0200 |
| commit | 396357741b88dfcd85486db673dbb822da8b2de0 (patch) | |
| tree | 1a9a659339554858109be3e5cfafc188397699bf /tests/regressiontests/bash_completion/tests.py | |
| parent | 2da3af23aa10af3e06536a46134b1053f80eb8b2 (diff) | |
[py3] Used compatible imports of StringIO.
Diffstat (limited to 'tests/regressiontests/bash_completion/tests.py')
| -rw-r--r-- | tests/regressiontests/bash_completion/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/bash_completion/tests.py b/tests/regressiontests/bash_completion/tests.py index e4b3bb58f3..ed8cedf1ab 100644 --- a/tests/regressiontests/bash_completion/tests.py +++ b/tests/regressiontests/bash_completion/tests.py @@ -3,11 +3,11 @@ A series of tests to establish that the command-line bash completion works. """ import os import sys -import StringIO from django.conf import settings from django.core.management import ManagementUtility from django.utils import unittest +from django.utils.six import StringIO class BashCompletionTests(unittest.TestCase): @@ -20,7 +20,7 @@ class BashCompletionTests(unittest.TestCase): def setUp(self): self.old_DJANGO_AUTO_COMPLETE = os.environ.get('DJANGO_AUTO_COMPLETE') os.environ['DJANGO_AUTO_COMPLETE'] = '1' - self.output = StringIO.StringIO() + self.output = StringIO() self.old_stdout = sys.stdout sys.stdout = self.output |
