def test_get_version(self): version = core.get_version() assert isinstance(version, str), repr(version) assert version, repr(version) header_version = core.get_header_version() assert isinstance(header_version, str), repr(header_version) assert header_version, repr(header_version) self.assertEqual(version, header_version)
def test_get_version(self): version = core.get_version() # pylint: disable=no-member self.assertIsInstance(version, str) self.assertTrue(version) header_version = core.get_header_version() # pylint: disable=no-member self.assertIsInstance(header_version, str) self.assertTrue(header_version) self.assertEqual(version, header_version)
def test_get_version(self): version = core.get_version() self.assertIsInstance(version, str) self.assertTrue(version) header_version = core.get_header_version() self.assertIsInstance(header_version, str) self.assertTrue(header_version) self.assertEqual(version, header_version)
def get_libevent_version(): from gevent import core libevent_version = core.get_version() if core.get_header_version() != core.get_version() and core.get_header_version() is not None: libevent_version += '/headers=%s' % core.get_header_version() return libevent_version
def get_core_version(): from gevent import core return core.get_version()