]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Remove mock dependency
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 22 Aug 2019 18:11:18 +0000 (14:11 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 22 Aug 2019 18:12:55 +0000 (14:12 -0400)
Mock is not needed over python 3.3, we need this tox
requirement only for Python 2.7 right now.

Change-Id: I06ae31f9fe6eaece0ec508e9431e4f8166a59684

lib/sqlalchemy/testing/suite/test_types.py
tox.ini

index 82a842102cdc79f6c50d61515dd8b66703af0e05..3cc0ec1f6ec4498aab1df0ea93441d6f41f748dd 100644 (file)
@@ -4,11 +4,10 @@ import datetime
 import decimal
 import json
 
-import mock
-
 from .. import config
 from .. import engines
 from .. import fixtures
+from .. import mock
 from ..assertions import eq_
 from ..config import requirements
 from ..schema import Column
diff --git a/tox.ini b/tox.ini
index ea520f9fe0a7535cdd4fcfcd863c2a526398f419..7eb809bbe274fea314c04c164c685585e77f6ad5 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -17,7 +17,7 @@ usedevelop=
 
 deps=pytest!=3.9.1,!=3.9.2
      pytest-xdist
-     mock
+     mock; python_version < '3.3'
      # needed only for correct profiling results
      # due to speed improvements in psycopg2 as of 2.7
      postgresql: psycopg2>=2.7