@@ -249,7 +249,7 @@ def test_close_releases_open_sockets(self):
249
249
client .close ()
250
250
251
251
conn_count_end = len (current_process .connections ())
252
- self .assertEqual (conn_count_end , conn_count_start )
252
+ self .assertLessEqual (conn_count_end , conn_count_start )
253
253
254
254
def test_create_dataset (self ):
255
255
DATASET_ID = _make_dataset_id ("create_dataset" )
@@ -1972,7 +1972,9 @@ def test_query_w_dml(self):
1972
1972
def test_dbapi_w_dml (self ):
1973
1973
dataset_name = _make_dataset_id ("dml_dbapi" )
1974
1974
table_name = "test_table"
1975
- self ._load_table_for_dml ([("Hello World" ,)], dataset_name , table_name )
1975
+ self ._load_table_for_dml (
1976
+ [("こんにちは" ,), ("Hello World" ,), ("Howdy!" ,)], dataset_name , table_name
1977
+ )
1976
1978
query_template = """UPDATE {}.{}
1977
1979
SET greeting = 'Guten Tag'
1978
1980
WHERE greeting = 'Hello World'
@@ -1983,7 +1985,6 @@ def test_dbapi_w_dml(self):
1983
1985
job_id = "test_dbapi_w_dml_{}" .format (str (uuid .uuid4 ())),
1984
1986
)
1985
1987
self .assertEqual (Config .CURSOR .rowcount , 1 )
1986
- self .assertIsNone (Config .CURSOR .fetchone ())
1987
1988
1988
1989
def test_query_w_query_params (self ):
1989
1990
from google .cloud .bigquery .job import QueryJobConfig
0 commit comments