python-astor/remove_nose.patch
Tomáš Chvátal c8dc2273b2 Accepting request 788279 from home:polslinux:branches:devel:languages:python
- Add remove_nose.patch
  * test suite runs fine without nose, because it was written for unittest2
    and, because nose won't work with Python 3.9/3.10, this patch removes
    the requirement from setup.cfg and use unittest2 in the spec file
    instead of nose

OBS-URL: https://build.opensuse.org/request/show/788279
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astor?expand=0&rev=13
2020-03-26 05:06:49 +00:00

13 lines
382 B
Diff

--- a/setup.cfg.orig 2020-03-25 16:06:14.496510596 +0100
+++ b/setup.cfg 2020-03-25 16:08:28.672752421 +0100
@@ -35,8 +35,7 @@
include_package_data = True
packages = find:
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
-tests_requires = ["nose", "astunparse"]
-test_suite = nose.collector
+tests_requires = ["astunparse"]
[options.packages.find]
exclude = tests