summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing
diff options
context:
space:
mode:
authorGord Thompson <gord@gordthompson.com>2020-04-16 16:06:36 -0600
committerGord Thompson <gord@gordthompson.com>2020-04-16 16:06:36 -0600
commit405fc9717048b0adc852a72da540048df7a8142a (patch)
tree95ad55122e2437d2d49f45ea9c5054f26fb48d79 /lib/sqlalchemy/testing
parent2f617f56f2acdce00b88f746c403cf5ed66d4d27 (diff)
downloadsqlalchemy-405fc9717048b0adc852a72da540048df7a8142a.tar.gz
Rename py.test to pytest
Change-Id: I431e1ef41e26d490343204a75a5c097768749768
Diffstat (limited to 'lib/sqlalchemy/testing')
-rw-r--r--lib/sqlalchemy/testing/fixtures.py2
-rw-r--r--lib/sqlalchemy/testing/plugin/plugin_base.py4
-rw-r--r--lib/sqlalchemy/testing/plugin/pytestplugin.py4
-rw-r--r--lib/sqlalchemy/testing/profiling.py2
-rw-r--r--lib/sqlalchemy/testing/provision.py2
5 files changed, 7 insertions, 7 deletions
diff --git a/lib/sqlalchemy/testing/fixtures.py b/lib/sqlalchemy/testing/fixtures.py
index 26ae221b8..a4399830e 100644
--- a/lib/sqlalchemy/testing/fixtures.py
+++ b/lib/sqlalchemy/testing/fixtures.py
@@ -23,7 +23,7 @@ from ..ext.declarative import DeclarativeMeta
# whether or not we use unittest changes things dramatically,
-# as far as how py.test collection works.
+# as far as how pytest collection works.
class TestBase(object):
diff --git a/lib/sqlalchemy/testing/plugin/plugin_base.py b/lib/sqlalchemy/testing/plugin/plugin_base.py
index 29dab098a..9b2f6911d 100644
--- a/lib/sqlalchemy/testing/plugin/plugin_base.py
+++ b/lib/sqlalchemy/testing/plugin/plugin_base.py
@@ -10,7 +10,7 @@
this module is designed to work as a testing-framework-agnostic library,
created so that multiple test frameworks can be supported at once
(mostly so that we can migrate to new ones). The current target
-is py.test.
+is pytest.
"""
@@ -206,7 +206,7 @@ def memoize_important_follower_config(dict_):
This invokes in the parent process after normal config is set up.
- This is necessary as py.test seems to not be using forking, so we
+ This is necessary as pytest seems to not be using forking, so we
start with nothing in memory, *but* it isn't running our argparse
callables, so we have to just copy all of that over.
diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py
index f2e7d706f..9dc40c9fe 100644
--- a/lib/sqlalchemy/testing/plugin/pytestplugin.py
+++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py
@@ -243,7 +243,7 @@ def _parametrize_cls(module, cls):
for arg, val in zip(argname_split, param.values):
cls_variables[arg] = val
parametrized_name = "_".join(
- # token is a string, but in py2k py.test is giving us a unicode,
+ # token is a string, but in py2k pytest is giving us a unicode,
# so call str() on it.
str(re.sub(r"\W", "", token))
for param in full_param_set
@@ -287,7 +287,7 @@ def pytest_runtest_teardown(item):
# ...but this works better as the hook here rather than
# using a finalizer, as the finalizer seems to get in the way
# of the test reporting failures correctly (you get a bunch of
- # py.test assertion stuff instead)
+ # pytest assertion stuff instead)
test_teardown(item)
diff --git a/lib/sqlalchemy/testing/profiling.py b/lib/sqlalchemy/testing/profiling.py
index b6108400d..24e96dfab 100644
--- a/lib/sqlalchemy/testing/profiling.py
+++ b/lib/sqlalchemy/testing/profiling.py
@@ -236,7 +236,7 @@ def function_call_count(variance=0.05, times=1, warmup=0):
"""
- # use signature-rewriting decorator function so that py.test fixtures
+ # use signature-rewriting decorator function so that pytest fixtures
# still work on py27. In Py3, update_wrapper() alone is good enough,
# likely due to the introduction of __signature__.
diff --git a/lib/sqlalchemy/testing/provision.py b/lib/sqlalchemy/testing/provision.py
index 0123ea7e7..660a3bd24 100644
--- a/lib/sqlalchemy/testing/provision.py
+++ b/lib/sqlalchemy/testing/provision.py
@@ -97,7 +97,7 @@ def create_db(cfg, eng, ident):
"""Dynamically create a database for testing.
Used when a test run will employ multiple processes, e.g., when run
- via `tox` or `py.test -n4`.
+ via `tox` or `pytest -n4`.
"""
raise NotImplementedError("no DB creation routine for cfg: %s" % eng.url)