]> git.pld-linux.org Git - packages/python-zeroconf.git/blob - python-zeroconf-mock.patch
- updated to 0.19.1, pl, cleanup
[packages/python-zeroconf.git] / python-zeroconf-mock.patch
1 --- python-zeroconf-0.19.1/test_zeroconf.py.orig        2017-06-13 08:34:17.000000000 +0200
2 +++ python-zeroconf-0.19.1/test_zeroconf.py     2023-03-26 17:55:15.249452986 +0200
3 @@ -272,7 +272,10 @@ class Names(unittest.TestCase):
4          assert longest_packet[0] >= r._MAX_MSG_ABSOLUTE - 100
5  
6          # mock zeroconf's logger warning() and debug()
7 -        from mock import patch
8 +        try:
9 +            from mock import patch
10 +        except ImportError:
11 +            from unittest.mock import patch
12          patch_warn = patch('zeroconf.log.warning')
13          patch_debug = patch('zeroconf.log.debug')
14          mocked_log_warn = patch_warn.start()
This page took 0.091663 seconds and 3 git commands to generate.