diff --git a/tests/unit/test_winVersion.py b/tests/unit/test_winVersion.py index b5caa551bd6..47e80ce2a45 100644 --- a/tests/unit/test_winVersion.py +++ b/tests/unit/test_winVersion.py @@ -24,7 +24,7 @@ def test_getWinVer(self): def test_getWinVerFromNonExistentRelease(self): # Test the fact that there is no Windows 10 2003 (2004 exists, however). - with self.assertRaises(IndexError): + with self.assertRaises(AttributeError): winVersion.WIN10_2003 def test_moreRecentWinVer(self):