Restore python-diskcache test dependency since it was unretired
This commit is contained in:
parent
1e56d5c80e
commit
4f2675c571
@ -1,6 +1,4 @@
|
||||
%bcond tests %{undefined rhel}
|
||||
# The python-diskcache package, used in some of the tests, has been retired.
|
||||
%bcond diskcache 0
|
||||
|
||||
Name: python-fasteners
|
||||
Version: 0.18
|
||||
@ -44,9 +42,6 @@ Obsoletes: python-fasteners-doc < 0.18-1
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n fasteners-%{version}
|
||||
%if %{without diskcache}
|
||||
sed -r -i '/\b(diskcache)\b/d' requirements-test.txt
|
||||
%endif
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
@ -64,7 +59,7 @@ sed -r -i '/\b(diskcache)\b/d' requirements-test.txt
|
||||
|
||||
%check
|
||||
%if %{with tests}
|
||||
%pytest %{?!with_diskcache:--ignore=tests/test_reader_writer_lock.py} -v
|
||||
%pytest -v
|
||||
%else
|
||||
%pyproject_check_import -e 'fasteners.pywin32*'
|
||||
%endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user