PEP 421 requires that .name be lower case.

This commit is contained in:
Barry Warsaw 2012-06-04 12:01:56 -04:00
parent 9b10e1fbb9
commit 028b37c941
1 changed files with 4 additions and 0 deletions

View File

@ -599,6 +599,10 @@ class SysModuleTest(unittest.TestCase):
version.serial << 0)
self.assertEqual(sys.implementation.hexversion, hexversion)
# PEP 421 requires that .name be lower case.
self.assertEqual(sys.implementation.name,
sys.implementation.name.lower())
class SizeofTest(unittest.TestCase):