def get_installed_pypackages():
    return {p.project_name.lower(): p for p in pkg_resources.working_set}
def test_abstract_class(self):
        class X(Structure):
            _abstract_ = "something"
        # try 'X()'
        cls, msg = self.get_except(eval, "X()", locals())
        self.assertEqual((cls, msg), (TypeError, "abstract class"))