#9 Update to 4.4.0
Closed 2 years ago by churchyard. Opened 2 years ago by churchyard.
rpms/ churchyard/pytest 4.4.0  into  master

file removed
-42
@@ -1,42 +0,0 @@ 

- From d32ab6029feb178df664e0d347e234cc4480eb7d Mon Sep 17 00:00:00 2001

- From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>

- Date: Tue, 12 Mar 2019 16:28:10 +0100

- Subject: [PATCH] Fix pytest tests invocation with custom PYTHONPATH

- 

- Fixes https://github.com/pytest-dev/pytest/issues/4913

- 

- Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>

- ---

-  changelog/4913.trivial.rst | 1 +

-  testing/test_collection.py | 3 ++-

-  2 files changed, 3 insertions(+), 1 deletion(-)

-  create mode 100644 changelog/4913.trivial.rst

- 

- diff --git a/changelog/4913.trivial.rst b/changelog/4913.trivial.rst

- new file mode 100644

- index 000000000..7846775cc

- --- /dev/null

- +++ b/changelog/4913.trivial.rst

- @@ -0,0 +1 @@

- +Fix pytest tests invocation with custom ``PYTHONPATH``.

- diff --git a/testing/test_collection.py b/testing/test_collection.py

- index 97c46d8c2..37f7ad89c 100644

- --- a/testing/test_collection.py

- +++ b/testing/test_collection.py

- @@ -2,6 +2,7 @@

-  from __future__ import division

-  from __future__ import print_function

-  

- +import os

-  import pprint

-  import sys

-  import textwrap

- @@ -1108,7 +1109,7 @@ def test_collect_pyargs_with_testpaths(testdir, monkeypatch):

-      """

-          )

-      )

- -    monkeypatch.setenv("PYTHONPATH", str(testdir.tmpdir))

- +    monkeypatch.setenv("PYTHONPATH", str(testdir.tmpdir), prepend=os.pathsep)

-      with root.as_cwd():

-          result = testdir.runpytest_subprocess()

-      result.stdout.fnmatch_lines(["*1 passed in*"])

file removed
-32
@@ -1,32 +0,0 @@ 

- From 134b957bf42ef92f892ace04651c87ab6d09999f Mon Sep 17 00:00:00 2001

- From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>

- Date: Thu, 14 Mar 2019 12:15:05 +0100

- Subject: [PATCH] Remove deprecated Sphinx directive add_description_unit()

- 

- Partial solution for https://github.com/pytest-dev/pytest/issues/4912

- ---

-  changelog/4912.trivial.rst | 1 +

-  doc/en/conf.py             | 2 +-

-  2 files changed, 2 insertions(+), 1 deletion(-)

-  create mode 100644 changelog/4912.trivial.rst

- 

- diff --git a/changelog/4912.trivial.rst b/changelog/4912.trivial.rst

- new file mode 100644

- index 000000000..9c5ca6d8e

- --- /dev/null

- +++ b/changelog/4912.trivial.rst

- @@ -0,0 +1 @@

- +Remove deprecated Sphinx directive, ``add_description_unit()``.

- diff --git a/doc/en/conf.py b/doc/en/conf.py

- index 74a43596e..5daa15a06 100644

- --- a/doc/en/conf.py

- +++ b/doc/en/conf.py

- @@ -335,7 +335,7 @@

-  def setup(app):

-      # from sphinx.ext.autodoc import cut_lines

-      # app.connect('autodoc-process-docstring', cut_lines(4, what=['module']))

- -    app.add_description_unit(

- +    app.add_object_type(

-          "confval",

-          "confval",

-          objname="configuration value",

file modified
+4 -7
@@ -2,19 +2,13 @@ 

  %global pylib_version 1.5.0

  

  Name:           pytest

- Version:        4.3.1

+ Version:        4.4.0

  Release:        1%{?dist}

  Summary:        Simple powerful testing with Python

  License:        MIT

  URL:            https://pytest.org

  Source0:        %{pypi_source}

  

- # Don't override our PYTHONPATH in tests

- Patch1:         https://github.com/pytest-dev/pytest/pull/4914.patch

- 

- # Update one call to Sphinx 2.0

- Patch2:         https://github.com/pytest-dev/pytest/pull/4922.patch

- 

  # The test in this specfile use pytest-timeout

  # When building pytest for the first time with new Python version

  # that is not possible as it depends on pytest
@@ -206,6 +200,9 @@ 

  %{python3_sitelib}/__pycache__/pytest.*

  

  %changelog

+ * Mon Apr 08 2019 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-1

+ - Update to 4.4.0

+ 

  * Sat Mar 16 2019 Miro Hrončok <mhroncok@redhat.com> - 4.3.1-1

  - Update to 4.3.1

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (pytest-4.3.1.tar.gz) = 5c76100b9efc9176803807a54ff25bfaba065fe3e8fea28b9b2f3ade289056d174e0cc4e1f399eba4ee8642e8990f43f5dc68b59cf55b7d81a43cd7cb363f542

+ SHA512 (pytest-4.4.0.tar.gz) = c3e2f75434bdf712d1773eb9220c4258a7c57f92c8172033989e6bb78cfa8e2198e9fecce8daf27935e8eb71f416fcdc1a6a9a135cf8c925fbfaeaf80f616411