Accepting request 622959 from devel:languages:python:pytest

- update to pytest-3.6.3
- drop python_mock.patch
 * Fix ImportWarning triggered by explicit relative imports in assertion-rewritten
    package modules.
 * Fix error in pytest.approx when dealing with 0-dimension numpy arrays.
 * No longer raise ValueError when using the get_marker API.
 * Fix problem where log messages with non-ascii characters would not appear
    in the output log file.
 * No longer raise AttributeError when legacy marks can't be stored in functions.

- update to pytest-3.6.3
- drop python_mock.patch
 * Fix ImportWarning triggered by explicit relative imports in assertion-rewritten
    package modules.
 * Fix error in pytest.approx when dealing with 0-dimension numpy arrays.
 * No longer raise ValueError when using the get_marker API.
 * Fix problem where log messages with non-ascii characters would not appear
    in the output log file.
 * No longer raise AttributeError when legacy marks can't be stored in functions. (forwarded request 622958 from mimi_vx)

OBS-URL: https://build.opensuse.org/request/show/622959
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=38
This commit is contained in:
Dominique Leuenberger 2018-07-17 07:38:13 +00:00 committed by Git OBS Bridge
commit f32849bcab
7 changed files with 31 additions and 24 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ea01fc4fcc8e1b1e305252b4bc80a1528019ab99fd3b88666c9dc38d754406c
size 829730

3
pytest-3.6.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0453c8676c2bee6feb0434748b068d5510273a916295fd61d306c4f22fbfd752
size 830949

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Jul 16 00:17:40 UTC 2018 - mimi.vx@gmail.com
- update to pytest-3.6.3
- drop python_mock.patch
* Fix ImportWarning triggered by explicit relative imports in assertion-rewritten
package modules.
* Fix error in pytest.approx when dealing with 0-dimension numpy arrays.
* No longer raise ValueError when using the get_marker API.
* Fix problem where log messages with non-ascii characters would not appear
in the output log file.
* No longer raise AttributeError when legacy marks can't be stored in functions.
-------------------------------------------------------------------
Fri Jun 22 15:47:28 UTC 2018 - mimi.vx@gmail.com

View File

@ -18,14 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-doc
Version: 3.6.2
Version: 3.6.3
Release: 0
Summary: Documentation for python-pytest, a testing tool with autodiscovery
License: MIT
Group: Documentation/HTML
URL: https://github.com/pytest-dev/pytest
Source: https://files.pythonhosted.org/packages/source/p/pytest/pytest-%{version}.tar.gz
Patch: python_mock.patch
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pytest = %{version}}
BuildRequires: %{python_module setuptools_scm}
@ -45,7 +44,6 @@ testing tool.
%prep
%setup -q -n pytest-%{version}
%patch -p1
%build
python3 setup.py build_sphinx

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Jul 16 00:17:40 UTC 2018 - mimi.vx@gmail.com
- update to pytest-3.6.3
- drop python_mock.patch
* Fix ImportWarning triggered by explicit relative imports in assertion-rewritten
package modules.
* Fix error in pytest.approx when dealing with 0-dimension numpy arrays.
* No longer raise ValueError when using the get_marker API.
* Fix problem where log messages with non-ascii characters would not appear
in the output log file.
* No longer raise AttributeError when legacy marks can't be stored in functions.
-------------------------------------------------------------------
Fri Jun 22 15:48:06 UTC 2018 - mimi.vx@gmail.com

View File

@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest
Version: 3.6.2
Version: 3.6.3
Release: 0
Summary: Python testing tool with autodiscovery and detailed asserts
License: MIT

View File

@ -1,17 +0,0 @@
Index: pytest-3.6.2/testing/test_mark.py
===================================================================
--- pytest-3.6.2.orig/testing/test_mark.py
+++ pytest-3.6.2/testing/test_mark.py
@@ -1,7 +1,11 @@
from __future__ import absolute_import, division, print_function
import os
import sys
-import mock
+try:
+ import mock
+except ImportError:
+ import unittest.mock as mock
+
import pytest
from _pytest.mark import (
MarkGenerator as Mark,