replace logging.warn with warning
call is deprected in python 3.7 Fixes: https://pagure.io/koji/issue/2135
This commit is contained in:
parent
ef0730f5d5
commit
0132313f92
13 changed files with 63 additions and 62 deletions
|
|
@ -140,7 +140,7 @@ class TestCallbacks(unittest.TestCase):
|
|||
self.assertEqual(len(self.callbacks), 1)
|
||||
self.assertEqual(self.callbacks[0], [cbtype, args, kwargs])
|
||||
getLogger.assert_called_once()
|
||||
getLogger.return_value.warn.assert_called_once()
|
||||
getLogger.return_value.warning.assert_called_once()
|
||||
|
||||
def test_datetime_callback(self):
|
||||
dt1 = datetime.datetime.now()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue