summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing
diff options
context:
space:
mode:
authorJim Fulton <jim@jimfulton.info>2021-05-17 11:29:54 -0400
committersqla-tester <sqla-tester@sqlalchemy.org>2021-05-17 11:29:54 -0400
commita52b5efda02708dc655da11b78d4e15f32785fa4 (patch)
tree4a2704391512cd948c8ca7da6c92c5f2dc4afabc /lib/sqlalchemy/testing
parentc379f80b4e6fb1b65983958116bac202c91a210a (diff)
downloadsqlalchemy-a52b5efda02708dc655da11b78d4e15f32785fa4.tar.gz
Use type_ when creating literals in _LiteralRoundTripFixture
Fixes #6496 by passing the `type_` argument passed to `run` to `literal`. This pull request is: - [ ] A documentation / typographical error fix - Good to go, no issue or tests are needed - [X] A short code fix - please include the issue number, and create an issue if none exists, which must include a complete example of the issue. one line code fixes without an issue and demonstration will not be accepted. - Please include: `Fixes: #<issue number>` in the commit message - please include tests. one line code fixes without tests will not be accepted. - [ ] A new feature implementation - please include the issue number, and create an issue if none exists, which must include a complete example of how the feature would look. - Please include: `Fixes: #<issue number>` in the commit message - please include tests. **Have a nice day!** Closes: #6497 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/6497 Pull-request-sha: 5f82408b2c25c7593f7202533dde4e29f045de5d Change-Id: Ieed822c157f91d95fe3a07ea4482a36777539c35
Diffstat (limited to 'lib/sqlalchemy/testing')
-rw-r--r--lib/sqlalchemy/testing/suite/test_types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_types.py b/lib/sqlalchemy/testing/suite/test_types.py
index 468a1660e..3c4a80573 100644
--- a/lib/sqlalchemy/testing/suite/test_types.py
+++ b/lib/sqlalchemy/testing/suite/test_types.py
@@ -63,7 +63,7 @@ class _LiteralRoundTripFixture(object):
for value in input_:
ins = (
t.insert()
- .values(x=literal(value))
+ .values(x=literal(value, type_))
.compile(
dialect=testing.db.dialect,
compile_kwargs=dict(literal_binds=True),