diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-05-25 09:14:45 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-05-25 09:15:46 -0400 |
commit | 5897a963473a77258319b4db4a36dcb1cd54eff2 (patch) | |
tree | 0c72fd87ed3bd7711f51af8f79d9dc43819bc87f | |
parent | 2d6cdc05ee9c8ad2f348d1419fb0e207256e5f51 (diff) | |
download | sqlalchemy-5897a963473a77258319b4db4a36dcb1cd54eff2.tar.gz |
Use py.test for versioned_history tests, nose no longer runs
without warnings under python 3
Fixes: #4697
Change-Id: I46d395d3b6642acd9317e27d6a5723ae5201e877
(cherry picked from commit 0694c7f272819d013b5e1931f1baf0ebfb05e666)
-rw-r--r-- | examples/versioned_history/__init__.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/versioned_history/__init__.py b/examples/versioned_history/__init__.py index 7478450ac..cfdf3c684 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:: |