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:
Eric Smith 2010-01-27 01:25:02 +00:00
parent 52b4b4509b
commit 05f3374402

View file

@ -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)