forked from pool/python-pytest-services
- Do not pull in mysql for tests we actually skip anyway
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-services?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
0b8655ecdc
commit
d4722ce8b2
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-services
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LLC.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -25,7 +25,6 @@ License: MIT
|
||||
URL: https://github.com/pytest-dev/pytest-services
|
||||
Source: https://github.com/pytest-dev/pytest-services/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module mysqlclient}
|
||||
BuildRequires: %{python_module psutil}
|
||||
BuildRequires: %{python_module pylibmc}
|
||||
BuildRequires: %{python_module pytest}
|
||||
@@ -53,6 +52,8 @@ processes for your tests with pytest.
|
||||
|
||||
%prep
|
||||
%setup -q -n pytest-services-%{version}
|
||||
# we don't test mysql anway
|
||||
sed -i -e '/import MySQLdb/d' tests/test_plugin.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
Reference in New Issue
Block a user