Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 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)
Exemple #5
0
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()
Exemple #7
0
def get_core_version():
    from gevent import core
    return core.get_version()