Changeset: da439b5be620 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/da439b5be620
Modified Files:
sql/test/concurrent/Tests/many-concurrent-client-connections.SQL.py
sql/test/concurrent/Tests/read-segment-after-free.SQL.py
Branch: Sep2022
Log Message:
Extra check for Windows.
diffs (24 lines):
diff --git
a/sql/test/concurrent/Tests/many-concurrent-client-connections.SQL.py
b/sql/test/concurrent/Tests/many-concurrent-client-connections.SQL.py
--- a/sql/test/concurrent/Tests/many-concurrent-client-connections.SQL.py
+++ b/sql/test/concurrent/Tests/many-concurrent-client-connections.SQL.py
@@ -1,7 +1,7 @@
import os, pymonetdb
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor
-if os.uname().sysname == 'Linux':
+if os.name == 'posix' and os.uname().sysname == 'Linux':
executor = ProcessPoolExecutor
else:
executor = ThreadPoolExecutor
diff --git a/sql/test/concurrent/Tests/read-segment-after-free.SQL.py
b/sql/test/concurrent/Tests/read-segment-after-free.SQL.py
--- a/sql/test/concurrent/Tests/read-segment-after-free.SQL.py
+++ b/sql/test/concurrent/Tests/read-segment-after-free.SQL.py
@@ -3,7 +3,7 @@ from concurrent.futures import ProcessPo
import time
from pymonetdb.exceptions import OperationalError
-if os.uname().sysname == 'Linux':
+if os.name == 'posix' and os.uname().sysname == 'Linux':
executor = ProcessPoolExecutor
else:
executor = ThreadPoolExecutor
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]