]> git.pld-linux.org Git - packages/python-cssutils.git/blob - python-cssutils-mock.patch
- disable network related tests by default; release 2
[packages/python-cssutils.git] / python-cssutils-mock.patch
1 --- cssutils-1.0.2/src/cssutils/tests/test_cssutils.py.orig     2017-03-04 10:53:23.000000000 +0100
2 +++ cssutils-1.0.2/src/cssutils/tests/test_cssutils.py  2017-07-03 21:07:40.163504334 +0200
3 @@ -13,8 +13,7 @@
4  try:
5      import mock
6  except ImportError:
7 -    mock = None
8 -    print "install mock library to run all tests"
9 +    import unittest.mock as mock
10  
11  
12  class CSSutilsTestCase(basetest.BaseTestCase):
13 --- cssutils-1.0.2/src/cssutils/tests/test_parse.py.orig        2015-11-25 23:11:26.000000000 +0100
14 +++ cssutils-1.0.2/src/cssutils/tests/test_parse.py     2017-07-03 21:08:16.740170584 +0200
15 @@ -12,8 +12,7 @@
16  try:
17      import mock
18  except ImportError:
19 -    mock = None
20 -    print "install mock library to run all tests"
21 +    import unittest.mock as mock
22  
23  
24  class CSSParserTestCase(basetest.BaseTestCase):
25 --- cssutils-1.0.2/src/cssutils/tests/test_util.py.orig 2016-10-27 13:55:21.000000000 +0200
26 +++ cssutils-1.0.2/src/cssutils/tests/test_util.py      2017-07-03 21:08:36.456837025 +0200
27 @@ -13,8 +13,7 @@
28  try:
29      import mock
30  except ImportError:
31 -    mock = None
32 -    print "install mock library to run all tests"
33 +    import unittest.mock as mock
34  
35  import basetest
36  import encutils
This page took 0.079116 seconds and 3 git commands to generate.