summaryrefslogtreecommitdiff
path: root/test/dialect/postgresql/test_compiler.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-11-25 14:46:33 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-11-25 14:46:33 +0000
commit3619f084bfb5208ae45686a0993d620b2711adf2 (patch)
tree45a273205c06947c098b48971cdd3d0ab0052e9a /test/dialect/postgresql/test_compiler.py
parente9c8b5307e6f107d03224453354ae0eaab7d42b1 (diff)
parent31acba8ff7c123a20ae308b7f4ab6df3df264b48 (diff)
downloadsqlalchemy-3619f084bfb5208ae45686a0993d620b2711adf2.tar.gz
Merge "Clean up most py3k compat" into main
Diffstat (limited to 'test/dialect/postgresql/test_compiler.py')
-rw-r--r--test/dialect/postgresql/test_compiler.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/dialect/postgresql/test_compiler.py b/test/dialect/postgresql/test_compiler.py
index 7e91f0ebb..a04e2932a 100644
--- a/test/dialect/postgresql/test_compiler.py
+++ b/test/dialect/postgresql/test_compiler.py
@@ -56,7 +56,6 @@ from sqlalchemy.testing.assertions import AssertsCompiledSQL
from sqlalchemy.testing.assertions import expect_warnings
from sqlalchemy.testing.assertions import is_
from sqlalchemy.util import OrderedDict
-from sqlalchemy.util import u
class SequenceTest(fixtures.TestBase, AssertsCompiledSQL):
@@ -190,15 +189,10 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL):
def test_create_drop_enum(self):
# test escaping and unicode within CREATE TYPE for ENUM
- typ = postgresql.ENUM(
- "val1", "val2", "val's 3", u("méil"), name="myname"
- )
+ typ = postgresql.ENUM("val1", "val2", "val's 3", "méil", name="myname")
self.assert_compile(
postgresql.CreateEnumType(typ),
- u(
- "CREATE TYPE myname AS "
- "ENUM ('val1', 'val2', 'val''s 3', 'méil')"
- ),
+ "CREATE TYPE myname AS ENUM ('val1', 'val2', 'val''s 3', 'méil')",
)
typ = postgresql.ENUM("val1", "val2", "val's 3", name="PleaseQuoteMe")