• Gabriel Francisco's avatar
    Remove few PendingDeprecationWarning from tests · 99cd46c6
    Gabriel Francisco authored
    when building in Buster.
    
    ============================= test session starts ==============================
    platform linux2 -- Python 2.7.16rc1, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 -- /usr/bin/python2
    cachedir: .pytest_cache
    rootdir: /srv/dak, inifile:
    collecting ... collected 166 items
    
    [...]
    
    =============================== warnings summary ===============================
    tests/test_parse_changes.py::ParseChangesTestCase::test_3
      /srv/dak/tests/test_parse_changes.py:95: PendingDeprecationWarning: Please use assertFalse instead.
        self.failIf(changes.get('you'))
      /srv/dak/tests/test_parse_changes.py:95: PendingDeprecationWarning: Please use assertFalse instead.
        self.failIf(changes.get('you'))
      /srv/dak/tests/test_parse_changes.py:95: PendingDeprecationWarning: Please use assertFalse instead.
        self.failIf(changes.get('you'))
    
    tests/test_parse_changes.py::ParseDscTestCase::test_9
      /srv/dak/tests/test_parse_changes.py:66: PendingDeprecationWarning: Please use assertFalse instead.
        self.failIf(changes.get('this'))
    
    -- Docs: https://docs.pytest.org/en/latest/warnings.html
    =================== 166 passed, 4 warnings in 19.14 seconds ====================
    99cd46c6
test_parse_changes.py 2.97 KB