summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-02-02 11:39:37 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2020-03-23 14:06:13 -0400
commit0a4f7f38ce2b878a4e59da74373938b64bbb6e92 (patch)
tree736194f482f6efde4638e72e5e83c09c7a04493e /test/sql
parentfd74bd8eea3f3696c43ca0336ed4e437036c43c5 (diff)
downloadsqlalchemy-0a4f7f38ce2b878a4e59da74373938b64bbb6e92.tar.gz
Remove deprecated elements from selectable.py; remove lockmode
Removed autocommit and legacy "for update" / "lockmode" elements from selectable.py / query.py. lockmode was removed from selectable in 693938dd6fb2f3ee3e031aed4c62355ac97f3ceb however was not removed from the ORM. Also removes the ignore_nonexistent_tables option on join(). Change-Id: I0cfcf9e6a8d4ef6432c9e25ef75173b3b3f5fd87 Partially-fixes: #4643
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_deprecations.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/sql/test_deprecations.py b/test/sql/test_deprecations.py
index 93b29847f..d641c18e2 100644
--- a/test/sql/test_deprecations.py
+++ b/test/sql/test_deprecations.py
@@ -29,7 +29,6 @@ from sqlalchemy.engine import default
from sqlalchemy.sql import coercions
from sqlalchemy.sql import quoted_name
from sqlalchemy.sql import roles
-from sqlalchemy.sql import util as sql_util
from sqlalchemy.sql import visitors
from sqlalchemy.sql.selectable import SelectStatementGrouping
from sqlalchemy.testing import assert_raises
@@ -94,24 +93,6 @@ class DeprecationWarningsTest(fixtures.TestBase, AssertsCompiledSQL):
):
create_engine("mysql://", convert_unicode=True, module=mock.Mock())
- def test_join_condition_ignore_nonexistent_tables(self):
- m = MetaData()
- t1 = Table("t1", m, Column("id", Integer))
- t2 = Table(
- "t2", m, Column("id", Integer), Column("t1id", ForeignKey("t1.id"))
- )
- with testing.expect_deprecated(
- "The join_condition.ignore_nonexistent_tables "
- "parameter is deprecated"
- ):
- join_cond = sql_util.join_condition(
- t1, t2, ignore_nonexistent_tables=True
- )
-
- t1t2 = t1.join(t2)
-
- assert t1t2.onclause.compare(join_cond)
-
def test_empty_and_or(self):
with testing.expect_deprecated(
r"Invoking and_\(\) without arguments is deprecated, and "