• 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
Name
Last commit
Last update
..
fixtures Loading commit data...
base_test.py Loading commit data...
db_test.py Loading commit data...
dbtest_all.py Loading commit data...
dbtest_archive.py Loading commit data...
dbtest_contents.py Loading commit data...
dbtest_cruft.py Loading commit data...
dbtest_debversion.py Loading commit data...
dbtest_fingerprint.py Loading commit data...
dbtest_metadata.py Loading commit data...
dbtest_multiproc.py Loading commit data...
dbtest_packages.py Loading commit data...
dbtest_session.py Loading commit data...
dbtest_timestamps.py Loading commit data...
run-dbtests Loading commit data...
test_architecture.py Loading commit data...
test_copy_installer.py Loading commit data...
test_daklib_dbconn.py Loading commit data...
test_daklib_fstransactions.py Loading commit data...
test_daklib_upload.py Loading commit data...
test_filewriter.py Loading commit data...
test_fix_maintainer.py Loading commit data...
test_formats.py Loading commit data...
test_gpg.py Loading commit data...
test_imports.py Loading commit data...
test_lintian.py Loading commit data...
test_multiprocessing.py Loading commit data...
test_packagelist.py Loading commit data...
test_parse_changes.py Loading commit data...
test_regexes.py Loading commit data...
test_split_uploaders.py Loading commit data...
test_srcformats.py Loading commit data...
test_utils.py Loading commit data...