Source: python-email-validator
Version: 1.1.1-2
Severity: serious
Tags: ftbfs

Dear Maintainer,

When attempting to build python-email-validator 1.1.1-2 locally, it
fails with the following test failures:

tests/test_main.py ...........................................FFF. [100%]

=================================== FAILURES =================================== ________________________ test_deliverability_no_records ________________________

    def test_deliverability_no_records():
assert validate_email_deliverability('example.com', 'example.com') == {'mx': [(0, '')], 'mx-fallback': None}
E AssertionError: assert {'unknown-del...y': 'timeout'} == {'mx': [(0, ''...llback': None}
E         Left contains 1 more item:
E         {'unknown-deliverability': 'timeout'}
E         Right contains 2 more items:
E         {'mx': [(0, '')], 'mx-fallback': None}
E         Use -v to get the full diff

tests/test_main.py:254: AssertionError
__________________________ test_deliverability_found ___________________________

    def test_deliverability_found():
response = validate_email_deliverability('gmail.com', 'gmail.com')
      assert response.keys() == {'mx', 'mx-fallback'}
E AssertionError: assert dict_keys(['u...iverability']) == {'mx', 'mx-fallback'}
E         Use -v to get the full diff

tests/test_main.py:259: AssertionError
__________________________ test_deliverability_fails ___________________________

    def test_deliverability_fails():
        domain = 'xkxufoekjvjfjeodlfmdfjcu.com'
with pytest.raises(EmailUndeliverableError, match='The domain name {} does not exist'.format(domain)):
          validate_email_deliverability(domain, domain)
E Failed: DID NOT RAISE <class 'email_validator.EmailUndeliverableError'>

tests/test_main.py:270: Failed
===================== 3 failed, 44 passed in 45.39 seconds =====================


Based on the error messages, it looks like these tests require
network access.


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.7.0-1-amd64 (SMP w/3 CPU threads)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled


--
mvh / best regards
Hans Joachim Desserud
http://desserud.org

Reply via email to