Merge 3.2

This commit is contained in:
Michael Foord 2011-12-18 22:09:27 +00:00
commit a699a2d0c1
3 changed files with 14 additions and 4 deletions

View file

@ -1004,6 +1004,11 @@ class TestGetattrStatic(unittest.TestCase):
self.assertEqual(inspect.getattr_static(instance, "spam"), 42)
self.assertFalse(Thing.executed)
def test_module(self):
sentinel = object()
self.assertIsNot(inspect.getattr_static(sys, "version", sentinel),
sentinel)
class TestGetGeneratorState(unittest.TestCase):
def setUp(self):