[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/ApplicationControl/tests - testRuntimeInfo.py:1.1.2.4
Philipp von Weitershausen
philikon@gmx.net
Thu, 11 Apr 2002 10:42:56 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/ApplicationControl/tests
In directory cvs.zope.org:/tmp/cvs-serv3686/tests
Modified Files:
Tag: Zope-3x-branch
testRuntimeInfo.py
Log Message:
os.uname() is not available outside Unix. RuntimeInfo will return
sys.platform in that case instead.
=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/tests/testRuntimeInfo.py 1.1.2.3 => 1.1.2.4 ===
def test_SystemPlatform(self):
runtime_info = self._Test__new()
- self.assertEqual(runtime_info.getSystemPlatform(), os.uname())
+ test_platform = (sys.platform,)
+ if hasattr(os, "uname"):
+ test_platform = os.uname()
+ self.assertEqual(runtime_info.getSystemPlatform(), test_platform)
def test_CommandLine(self):
runtime_info = self._Test__new()