summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-05-25 09:14:45 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2019-05-25 09:14:45 -0400
commit0694c7f272819d013b5e1931f1baf0ebfb05e666 (patch)
treef47ca436b674dcc069c4e6863481d3af223e0866 /examples
parent90882ed43cce26c069b6696b441b6ad8a7372301 (diff)
downloadsqlalchemy-0694c7f272819d013b5e1931f1baf0ebfb05e666.tar.gz
Use py.test for versioned_history tests, nose no longer runs
without warnings under python 3 Fixes: #4697 Change-Id: I46d395d3b6642acd9317e27d6a5723ae5201e877
Diffstat (limited to 'examples')
-rw-r--r--examples/versioned_history/__init__.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/versioned_history/__init__.py b/examples/versioned_history/__init__.py
index e6db1fc2c..1d271fb62 100644
--- a/examples/versioned_history/__init__.py
+++ b/examples/versioned_history/__init__.py
@@ -7,10 +7,13 @@ Compare to the :ref:`examples_versioned_rows` examples which write updates
as new rows in the same table, without using a separate history table.
Usage is illustrated via a unit test module ``test_versioning.py``, which can
-be run via nose::
+be run via ``py.test``::
+
+ # assume SQLAlchemy is installed where py.test is
+
+ cd examples/versioned_history
+ py.test test_versioning.py
- cd examples/versioning
- nosetests -v
A fragment of example usage, using declarative::