mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 12:27:03 +08:00
black 20.8b1
This commit is contained in:
@ -131,7 +131,11 @@ def Time_or_None(s):
|
|||||||
|
|
||||||
def Date_or_None(s):
|
def Date_or_None(s):
|
||||||
try:
|
try:
|
||||||
return date(int(s[:4]), int(s[5:7]), int(s[8:10]),) # year # month # day
|
return date(
|
||||||
|
int(s[:4]),
|
||||||
|
int(s[5:7]),
|
||||||
|
int(s[8:10]),
|
||||||
|
) # year # month # day
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -5,7 +5,10 @@ from os import environ, path
|
|||||||
tests_path = path.dirname(__file__)
|
tests_path = path.dirname(__file__)
|
||||||
conf_file = environ.get("TESTDB", "default.cnf")
|
conf_file = environ.get("TESTDB", "default.cnf")
|
||||||
conf_path = path.join(tests_path, conf_file)
|
conf_path = path.join(tests_path, conf_file)
|
||||||
connect_kwargs = dict(read_default_file=conf_path, read_default_group="MySQLdb-tests",)
|
connect_kwargs = dict(
|
||||||
|
read_default_file=conf_path,
|
||||||
|
read_default_group="MySQLdb-tests",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def connection_kwargs(kwargs):
|
def connection_kwargs(kwargs):
|
||||||
|
@ -161,7 +161,8 @@ class test_MySQLdb(dbapi20.DatabaseAPI20Test):
|
|||||||
pass # performed in test_MySQL_capabilities
|
pass # performed in test_MySQL_capabilities
|
||||||
|
|
||||||
def help_nextset_setUp(self, cur):
|
def help_nextset_setUp(self, cur):
|
||||||
""" Should create a procedure called deleteme
|
"""
|
||||||
|
Should create a procedure called deleteme
|
||||||
that returns two result sets, first the
|
that returns two result sets, first the
|
||||||
number of rows in booze then "name from booze"
|
number of rows in booze then "name from booze"
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user