Browse Source

test will run on Windoze, too

PYADPT-55
Volker Birk 6 years ago
parent
commit
0b19dea708
  1. 4
      test/minimail.py
  2. 5
      test/sync_test.py

4
test/minimail.py

@ -6,13 +6,15 @@
# this file is under GNU General Public License 3.0
import pathlib
import pEp
from secrets import token_urlsafe
def send(msg):
name = token_urlsafe(16) + ".eml"
with open("../TestInbox/" + name, "wb") as f:
parent = pathlib.Path("..")
with open(parent / "TestInbox" / name, "wb") as f:
f.write(str(msg).encode())

5
test/sync_test.py

@ -5,10 +5,9 @@
# this file is under GNU General Public License 3.0
# this test is only running on POSIX systems
import os, pathlib
import os
import pathlib
def test_for(path):

Loading…
Cancel
Save