Loading
Fix email header encoding
Type issues that manifested in the following...
Traceback (most recent call last):
File "/home/atagar/Desktop/tor/bridgedb/bridgedb/test/test_email_server.py", line 208, in test_SMTPIncomingDelivery_receivedHeader
self.assertSubstring("Received: from example.com", hdr)
File "/usr/local/lib/python3.5/dist-packages/twisted/trial/_synctest.py", line 571, in assertSubstring
return self.failUnlessIn(substring, astring, msg)
File "/usr/local/lib/python3.5/dist-packages/twisted/trial/_synctest.py", line 492, in assertIn
% (containee, container))
twisted.trial.unittest.FailTest: 'Received: from example.com' not in "Received: from b'example.com' ([b'127.0.0.1'] helo=b'example.com')\n\tby b'morrigan' with BridgeDB (0.9.1+61.g862b4bd.dirty)\n\tfor client@example.com; b'Sun, 19 Jan 2020 17:35:00 -0800' "
Test results changed as follows...
before: FAILED (skips=115, failures=21, successes=848)
after: FAILED (skips=115, failures=20, successes=849)