Changeset: 3fd28db46e63 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3fd28db46e63
Modified Files:
clients/mapilib/Tests/tlssecurity.py
Branch: monetdburl
Log Message:
Test clients/mapilib/tlssecurity: fix python path to make it work on Windows
diffs (24 lines):
diff --git a/clients/mapilib/Tests/tlssecurity.py
b/clients/mapilib/Tests/tlssecurity.py
--- a/clients/mapilib/Tests/tlssecurity.py
+++ b/clients/mapilib/Tests/tlssecurity.py
@@ -3,8 +3,13 @@
import logging
import os
import subprocess
+import sys
import threading
-import time
+
+# On Windows we need to adjust the Python path
+here = os.environ.get('TSTSRCDIR', None)
+if here:
+ sys.path = [ here, *sys.path ]
import tlstester
@@ -159,4 +164,4 @@ attempt('server1', 'terminated', tls=Fal
# Uncomment to keep the server running so you
# can run some experiments from the command line
-# logging.warning("sleeping"); time.sleep(86400)
+# logging.warning("sleeping"); import time; time.sleep(86400)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]