Hello community,

here is the log from the commit of package python-pytest-mock for 
openSUSE:Factory checked in at 2019-05-02 19:13:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-mock (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-mock.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-mock"

Thu May  2 19:13:47 2019 rev:11 rq:699374 version:1.10.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-mock/python-pytest-mock.changes    
2019-04-04 12:00:30.517272440 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-mock.new.5148/python-pytest-mock.changes
  2019-05-02 19:13:58.128959462 +0200
@@ -1,0 +2,6 @@
+Mon Apr 29 08:07:10 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.10.4:
+  * Fix plugin when 'terminal' plugin is disabled
+
+-------------------------------------------------------------------

Old:
----
  pytest-mock-1.10.3.tar.gz

New:
----
  pytest-mock-1.10.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-mock.spec ++++++
--- /var/tmp/diff_new_pack.REJ21k/_old  2019-05-02 19:13:59.308962462 +0200
+++ /var/tmp/diff_new_pack.REJ21k/_new  2019-05-02 19:13:59.312962473 +0200
@@ -20,7 +20,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %bcond_without python2
 Name:           python-pytest-mock
-Version:        1.10.3
+Version:        1.10.4
 Release:        0
 Summary:        Thin-wrapper around the mock package for easier use with pytest
 License:        MIT

++++++ pytest-mock-1.10.3.tar.gz -> pytest-mock-1.10.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mock-1.10.3/CHANGELOG.rst 
new/pytest-mock-1.10.4/CHANGELOG.rst
--- old/pytest-mock-1.10.3/CHANGELOG.rst        2019-03-30 14:26:09.000000000 
+0100
+++ new/pytest-mock-1.10.4/CHANGELOG.rst        2019-04-17 19:23:43.000000000 
+0200
@@ -1,3 +1,8 @@
+1.10.4
+------
+
+* Fix plugin when 'terminal' plugin is disabled
+
 1.10.3
 ------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mock-1.10.3/PKG-INFO 
new/pytest-mock-1.10.4/PKG-INFO
--- old/pytest-mock-1.10.3/PKG-INFO     2019-03-30 14:26:27.000000000 +0100
+++ new/pytest-mock-1.10.4/PKG-INFO     2019-04-17 19:24:00.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pytest-mock
-Version: 1.10.3
+Version: 1.10.4
 Summary: Thin-wrapper around the mock package for easier use with py.test
 Home-page: https://github.com/pytest-dev/pytest-mock/
 Author: Bruno Oliveira
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mock-1.10.3/_pytest_mock_version.py 
new/pytest-mock-1.10.4/_pytest_mock_version.py
--- old/pytest-mock-1.10.3/_pytest_mock_version.py      2019-03-30 
14:26:26.000000000 +0100
+++ new/pytest-mock-1.10.4/_pytest_mock_version.py      2019-04-17 
19:23:59.000000000 +0200
@@ -1,4 +1,4 @@
 # coding: utf-8
 # file generated by setuptools_scm
 # don't change, don't track in version control
-version = '1.10.3'
+version = '1.10.4'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mock-1.10.3/pytest_mock.egg-info/PKG-INFO 
new/pytest-mock-1.10.4/pytest_mock.egg-info/PKG-INFO
--- old/pytest-mock-1.10.3/pytest_mock.egg-info/PKG-INFO        2019-03-30 
14:26:26.000000000 +0100
+++ new/pytest-mock-1.10.4/pytest_mock.egg-info/PKG-INFO        2019-04-17 
19:23:59.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pytest-mock
-Version: 1.10.3
+Version: 1.10.4
 Summary: Thin-wrapper around the mock package for easier use with py.test
 Home-page: https://github.com/pytest-dev/pytest-mock/
 Author: Bruno Oliveira
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mock-1.10.3/pytest_mock.py 
new/pytest-mock-1.10.4/pytest_mock.py
--- old/pytest-mock-1.10.3/pytest_mock.py       2019-03-30 14:26:09.000000000 
+0100
+++ new/pytest-mock-1.10.4/pytest_mock.py       2019-04-17 19:23:43.000000000 
+0200
@@ -328,7 +328,7 @@
 
 
 def pytest_configure(config):
-    tb = config.getoption("--tb")
+    tb = config.getoption("--tb", default="auto")
     if (
         parse_ini_boolean(config.getini("mock_traceback_monkeypatch"))
         and tb != "native"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mock-1.10.3/test_pytest_mock.py 
new/pytest-mock-1.10.4/test_pytest_mock.py
--- old/pytest-mock-1.10.3/test_pytest_mock.py  2019-03-30 14:26:09.000000000 
+0100
+++ new/pytest-mock-1.10.4/test_pytest_mock.py  2019-04-17 19:23:43.000000000 
+0200
@@ -561,6 +561,22 @@
     )  # make sure there are no duplicated tracebacks (#44)
 
 
+def test_monkeypatch_no_terminal(testdir):
+    """Don't crash without 'terminal' plugin.
+    """
+    testdir.makepyfile(
+        """
+        def test_foo(mocker):
+            stub = mocker.stub()
+            stub(1, greet='hello')
+            stub.assert_called_once_with(1, greet='hey')
+        """
+    )
+    result = runpytest_subprocess(testdir, "-p", "no:terminal", "-s")
+    assert result.ret == 1
+    assert result.stdout.lines == []
+
+
 @pytest.mark.skipif(sys.version_info[0] < 3, reason="Py3 only")
 def test_standalone_mock(testdir):
     """Check that the "mock_use_standalone" is being used.


Reply via email to