Skip to content

Commit b290352

Browse files
zzzeekGerrit Code Review
authored andcommitted
Merge "Removed some legacy terms in favor of modern equivalents. (D&I)"
2 parents e565349 + f6fca84 commit b290352

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/sqlalchemy/testing/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
class TestBase(object):
3131
# A sequence of database names to always run, regardless of the
3232
# constraints below.
33-
__whitelist__ = ()
33+
__allowlist__ = ()
3434

3535
# A sequence of requirement names matching testing.requires decorators
3636
__requires__ = ()

regen_callcounts.tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ deps=pytest
1212
db_mssql: .[mssql]
1313

1414

15-
whitelist_externals=sh
15+
allowlist_externals=sh
1616

1717
commands=
1818
db_{mysql}: {env:BASECOMMAND} {env:MYSQL:} {posargs}

test/orm/test_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,7 +1811,7 @@ class SessionInterface(fixtures.TestBase):
18111811
def _public_session_methods(self):
18121812
Session = sa.orm.session.Session
18131813

1814-
blacklist = {"begin", "query", "bind_mapper", "get", "bind_table"}
1814+
blocklist = {"begin", "query", "bind_mapper", "get", "bind_table"}
18151815
specials = {"__iter__", "__contains__"}
18161816
ok = set()
18171817
for name in dir(Session):
@@ -1823,7 +1823,7 @@ def _public_session_methods(self):
18231823
or _py_inspect.isfunction(getattr(Session, name))
18241824
)
18251825
):
1826-
if name in blacklist:
1826+
if name in blocklist:
18271827
continue
18281828
spec = inspect_getfullargspec(getattr(Session, name))
18291829
if len(spec[0]) > 1 or spec[1]:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ deps=
3939

4040
cov: pytest-cov
4141

42-
whitelist_externals=sh
42+
allowlist_externals=sh
4343

4444
# PYTHONPATH - erased so that we use the build that's present
4545
# in .tox as the SQLAlchemy library to be imported

0 commit comments

Comments
 (0)