black 20.8b1

This commit is contained in:
Inada Naoki
2020-12-04 12:21:41 +09:00
parent d7b988ae16
commit d56b0b7f8c
5 changed files with 43 additions and 35 deletions

View File

@ -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

View File

@ -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):

View File

@ -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"
""" """