]> git.pld-linux.org Git - packages/python-sqlalchemy.git/blobdiff - python-sqlalchemy-tests.patch
- unconditional noarch subpackages
[packages/python-sqlalchemy.git] / python-sqlalchemy-tests.patch
index a404e2428e2338f618a960d88695a415c9e5411e..a00146f05561f884c9685b1f6662ec456cb36746 100644 (file)
@@ -9,26 +9,12 @@
  
      def initialize_options(self):
          TestCommand.initialize_options(self)
-@@ -121,6 +121,13 @@
-     readme = r_file.read()
-+def get_mock_dep():
-+    try:
-+        from unittest import mock
-+        return []
-+    except ImportError:
-+        return ['mock']
-+
- def run_setup(with_cext):
-     kwargs = {}
-     if with_cext:
-@@ -139,7 +146,7 @@
-         package_dir={'': 'lib'},
-         license="MIT License",
+@@ -159,7 +159,7 @@
          cmdclass=cmdclass,
--        tests_require=['pytest>=2.5.2,!=3.9.1,!=3.9.2', 'mock', 'pytest-xdist'],
-+        tests_require=['pytest>=2.5.2,!=3.9.1,!=3.9.2', 'pytest-xdist'] + get_mock_dep(),
+         tests_require=[
+             "pytest>=2.5.2,!=3.9.1,!=3.9.2",
+-            "mock",
++            "mock;python_version<'3.3'",
+             "pytest-xdist",
+         ],
          long_description=readme,
-         classifiers=[
-             "Development Status :: 5 - Production/Stable",
This page took 0.037 seconds and 4 git commands to generate.