[pypy-commit] pypy default: os has no uname on win32

mattip pypy.commits at gmail.com
Thu Sep 14 15:42:24 EDT 2017


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r92394:1eac75e69a12
Date: 2017-09-14 22:41 +0300
http://bitbucket.org/pypy/pypy/changeset/1eac75e69a12/

Log:	os has no uname on win32

diff --git a/pypy/module/select/test/test_select.py b/pypy/module/select/test/test_select.py
--- a/pypy/module/select/test/test_select.py
+++ b/pypy/module/select/test/test_select.py
@@ -329,7 +329,7 @@
     }
 
     import os
-    if os.uname()[4] == 's390x':
+    if hasattr(os, 'uname') and os.uname()[4] == 's390x':
         py.test.skip("build bot for s390x cannot open sockets")
 
     def w_make_server(self):


More information about the pypy-commit mailing list