mirror of
https://github.com/python/cpython.git
synced 2025-10-24 07:26:11 +00:00
Merged revisions 77775 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77775 | eric.smith | 2010-01-26 20:21:15 -0500 (Tue, 26 Jan 2010) | 1 line Switch to test_support.get_attribute. ........
This commit is contained in:
parent
52b4b4509b
commit
05f3374402
1 changed files with 23 additions and 22 deletions
|
|
@ -226,7 +226,8 @@ class SysModuleTest(unittest.TestCase):
|
||||||
err)
|
err)
|
||||||
|
|
||||||
def test_getwindowsversion(self):
|
def test_getwindowsversion(self):
|
||||||
if hasattr(sys, "getwindowsversion"):
|
# Raise SkipTest if sys doesn't have getwindowsversion attribute
|
||||||
|
test.test_support.get_attribute(sys, "getwindowsversion")
|
||||||
v = sys.getwindowsversion()
|
v = sys.getwindowsversion()
|
||||||
self.assertEqual(len(v), 5)
|
self.assertEqual(len(v), 5)
|
||||||
self.assertIsInstance(v[0], int)
|
self.assertIsInstance(v[0], int)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue