Changeset: b917da900da3 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b917da900da3
Modified Files:
testing/process.py
Branch: Jul2021
Log Message:
sys.version[:3] doesn't work for Python 3.10.
diffs (12 lines):
diff --git a/testing/process.py b/testing/process.py
--- a/testing/process.py
+++ b/testing/process.py
@@ -167,7 +167,7 @@ class Popen(subprocess.Popen):
def __init__(self, *args, **kwargs):
self.dotmonetdbfile = None
self.isserver = False
- if sys.version[:3] < '3.7':
+ if sys.version_info.major == 3 and sys.version_info.minor < 7:
kw = kwargs.copy()
if 'text' in kw:
kw['universal_newlines'] = kw['text']
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list