summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-06-26 14:20:13 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-06-26 14:20:13 +0000
commit79f84f71e1045aafed389e7b22112c3d706d0bac (patch)
tree193eb6d8b7a1075ddf325f932d1c0ab286fa3cce /tests/test_config.py
parent64c9edf283520c38738e240fc011ce963c8bd9c5 (diff)
parentb511670231e99c5278d58e789f9efb7855488b41 (diff)
downloadalembic-79f84f71e1045aafed389e7b22112c3d706d0bac.tar.gz
Merge "Drop compatibility with python 2.7."
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index fdb837e..7957a1b 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -18,7 +18,6 @@ from alembic.testing.env import clear_staging_env
from alembic.testing.env import staging_env
from alembic.testing.fixtures import capture_db
from alembic.testing.fixtures import TestBase
-from alembic.util import compat
class FileConfigTest(TestBase):
@@ -210,16 +209,16 @@ class StdoutOutputEncodingTest(TestBase):
def test_utf8_unicode(self):
stdout = mock.Mock(encoding="latin-1")
cfg = config.Config(stdout=stdout)
- cfg.print_stdout(compat.u("méil %s %s"), "x", "y")
+ cfg.print_stdout("méil %s %s", "x", "y")
eq_(
stdout.mock_calls,
- [mock.call.write(compat.u("méil x y")), mock.call.write("\n")],
+ [mock.call.write("méil x y"), mock.call.write("\n")],
)
def test_ascii_unicode(self):
stdout = mock.Mock(encoding=None)
cfg = config.Config(stdout=stdout)
- cfg.print_stdout(compat.u("méil %s %s"), "x", "y")
+ cfg.print_stdout("méil %s %s", "x", "y")
eq_(
stdout.mock_calls,
[mock.call.write("m?il x y"), mock.call.write("\n")],
@@ -228,7 +227,7 @@ class StdoutOutputEncodingTest(TestBase):
def test_only_formats_output_with_args(self):
stdout = mock.Mock(encoding=None)
cfg = config.Config(stdout=stdout)
- cfg.print_stdout(compat.u("test 3%"))
+ cfg.print_stdout("test 3%")
eq_(
stdout.mock_calls,
[mock.call.write("test 3%"), mock.call.write("\n")],