This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new 5530b14  Minor tweaks
5530b14 is described below

commit 5530b14fcad8eaccaf3840d3bf2b6274630b6e69
Author: Sebb <s...@apache.org>
AuthorDate: Tue Mar 28 16:47:49 2023 +0100

    Minor tweaks
---
 test/test_archiver.py | 9 ++-------
 test/test_msgid.py    | 1 -
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/test/test_archiver.py b/test/test_archiver.py
index ea1982c..4db5749 100644
--- a/test/test_archiver.py
+++ b/test/test_archiver.py
@@ -15,8 +15,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import pytest
-
 # To be run as: python3 -m pytest test/test_archiver.py
 # This ensures sys.path is set up correctly
 
@@ -37,8 +35,8 @@ def test_archiver_1():
     )
     list_override = 'a.b.c.d'
     private = False
-    file = open("test/resources/rfc2822-A5.eml","rb")
-    message_raw = file.read()
+    mlfile = open("test/resources/rfc2822-A5.eml","rb")
+    message_raw = mlfile.read()
     message = email.message_from_bytes(message_raw, 
policy=email.policy.SMTPUTF8)
     json, contents, _msgdata, _irt, skipit = archie.compute_updates(
         list_override, private, message, message_raw
@@ -53,6 +51,3 @@ def test_archiver_1():
     print(_irt)
     print("--skipit--")
     print(skipit)
-    # assert False, json
-
-test_archiver_1()
\ No newline at end of file
diff --git a/test/test_msgid.py b/test/test_msgid.py
index 39ddd11..403c210 100755
--- a/test/test_msgid.py
+++ b/test/test_msgid.py
@@ -4,7 +4,6 @@ import sys
 import email
 import gzip
 from email.policy import default
-from email.policy import compat32
 
 class MyHeaderClass(email.headerregistry.UnstructuredHeader):
     @classmethod

Reply via email to