Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_version(self):
upfile = lambda p: os.path.join(os.path.dirname(__file__), "..", p)
hversion, = re.findall('GREENLET_VERSION "(.*)"', readfile(upfile("greenlet.h")))
sversion = readclose(os.popen("%s %s --version" % (sys.executable, upfile("setup.py")))).strip()
self.assertFalse(sversion != hversion)
self.assertFalse(sversion != greenlet.__version__)
Log content:
%s
""" % (
version,
platform, platform_unmapped, platform_string.strip(),
subprocess.check_output(['uname', '-mp']).strip(),
'.'.join([str(x) for x in _platform.python_version_tuple()]),
installation_uid,
debug,
catcher_url or 'Failed to upload traceback',
', '.join(sorted(manager.get_order())),
gevent.__version__,
greenlet.__version__,
reconfigure.__version__,
requests.__version__,
psutil.__version__,
tb,
log,
)
greenlet | %s
psutil | %s
%s
""" % (
version,
platform, platform_unmapped, platform_string,
subprocess.check_output(['uname', '-mp']).strip(),
'.'.join([str(x) for x in _platform.python_version_tuple()]),
debug,
', '.join(sorted(PluginManager.get(aj.context).get_loaded_plugins_list())),
gevent.__version__,
greenlet.__version__,
psutil.__version__,
tb,
)
Log content:
%s
""" % (
version,
platform, platform_unmapped, platform_string.strip(),
subprocess.check_output(['uname', '-mp']).strip(),
'.'.join([str(x) for x in _platform.python_version_tuple()]),
installation_uid,
debug,
catcher_url or 'Failed to upload traceback',
', '.join(sorted(manager.get_order())),
gevent.__version__,
greenlet.__version__,
reconfigure.__version__,
requests.__version__,
psutil.__version__,
tb,
log,
)