Commit ae4f53f3 authored by Eric Smith's avatar Eric Smith

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.
........
parent 9b096205
......@@ -226,7 +226,8 @@ class SysModuleTest(unittest.TestCase):
err)
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()
self.assertEqual(len(v), 5)
self.assertIsInstance(v[0], int)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment