mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-22 03:11:51 +00:00
Adds Python 3 compatibility to the benchmark.
This commit is contained in:
parent
d14293ca55
commit
40c8700ee5
4 changed files with 12 additions and 6 deletions
|
|
@ -21,6 +21,7 @@ from django.contrib.auth.models import User, Group
|
|||
from django.core.cache import get_cache
|
||||
from django.db import connections, connection
|
||||
from django.test.utils import CaptureQueriesContext, override_settings
|
||||
from django.utils.encoding import force_text
|
||||
import matplotlib.pyplot as plt
|
||||
import MySQLdb
|
||||
import pandas as pd
|
||||
|
|
@ -71,11 +72,12 @@ def write_conditions():
|
|||
versions['MySQL'] = cursor.fetchone()[0].split('-')[0]
|
||||
cursor.close()
|
||||
# Redis
|
||||
out = check_output(['redis-cli', 'INFO', 'server']).replace('\r', '')
|
||||
out = force_text(check_output(['redis-cli',
|
||||
'INFO', 'server'])).replace('\r', '')
|
||||
versions['Redis'] = re.search(r'^redis_version:([\d\.]+)$', out,
|
||||
flags=re.MULTILINE).group(1)
|
||||
# memcached
|
||||
out = check_output(['memcached', '-h'])
|
||||
out = force_text(check_output(['memcached', '-h']))
|
||||
versions['memcached'] = re.match(r'^memcached ([\d\.]+)$', out,
|
||||
flags=re.MULTILINE).group(1)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
-r runtests_requirements.txt
|
||||
|
||||
pandas
|
||||
matplotlib
|
||||
4
benchmark_requirements_py2.txt
Normal file
4
benchmark_requirements_py2.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-r runtests_requirements_py2.txt
|
||||
|
||||
pandas
|
||||
matplotlib
|
||||
4
benchmark_requirements_py3.txt
Normal file
4
benchmark_requirements_py3.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-r runtests_requirements_py3.txt
|
||||
|
||||
pandas
|
||||
matplotlib
|
||||
Loading…
Reference in a new issue