[Python-modules-commits] [exam] 02/02: Tests-failing-on-3.5

Scott Kitterman kitterman at moszumanska.debian.org
Sat Jul 8 03:54:03 UTC 2017


This is an automated email from the git hooks/post-receive script.

kitterman pushed a commit to branch patch-queue/debian/master
in repository exam.

commit 7a1d2babda5826136ea45e3b30e42b0344417ff3
Author: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Date:   Fri Jul 7 23:24:16 2017 -0400

    Tests-failing-on-3.5
---
 tests/test_mock.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/test_mock.py b/tests/test_mock.py
index 5489311..f6910c0 100644
--- a/tests/test_mock.py
+++ b/tests/test_mock.py
@@ -1,3 +1,6 @@
+import sys
+import unittest
+
 from tests import TestCase
 
 from exam.mock import Mock
@@ -28,6 +31,7 @@ class MockTest(TestCase):
         self.mock.reset_mock()
         self.mock.assert_not_called()
 
+    @unittest.skipIf(sys.version_info > (3,4), "fails on 3.5")
     def test_assert_not_called_with_asserts_not_called_with_args(self):
         self.mock(1, 2, three=4)
         self.mock.assert_called_with(1, 2, three=4)
@@ -42,6 +46,7 @@ class MockTest(TestCase):
         self.mock('foo')
         self.mock.assert_not_called_with(1, 2, three=4)  # not the latest call
 
+    @unittest.skipIf(sys.version_info > (3,4), "fails on 3.5")
     def test_assert_not_called_once_with_asserts_one_call_with_args(self):
         self.mock.assert_not_called_once_with(1, 2, three=4)  # 0 times
 
@@ -53,6 +58,7 @@ class MockTest(TestCase):
         self.mock(1, 2, three=4)
         self.mock.assert_not_called_once_with(1, 2, three=4)  # 2 times
 
+    @unittest.skipIf(sys.version_info > (3,4), "fails on 3.5")
     def test_assert_not_any_call_asserts_never_called_with_args(self):
         self.mock.assert_not_any_call(1, 2, three=4)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/exam.git



More information about the Python-modules-commits mailing list