Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 94dcc23

Browse files
committed
Fix flake8 and unit test run by adding missing pytest import and running black
1 parent 03ca3d9 commit 94dcc23

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

tests/unit/test_spanner.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515

1616
import threading
17+
import unittest
18+
19+
import pytest
1720
from google.protobuf.struct_pb2 import Struct
1821
from google.cloud.spanner_v1 import (
1922
PartialResultSet,
@@ -955,7 +958,9 @@ def test_transaction_should_use_transaction_id_returned_by_first_batch_update(se
955958
timeout=TIMEOUT,
956959
)
957960

958-
@pytest.mark.skip(reason="Inherently flaky, relies on thread crash swallowing in older Pytest")
961+
@pytest.mark.skip(
962+
reason="Inherently flaky, relies on thread crash swallowing in older Pytest"
963+
)
959964
def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_execute_update(
960965
self,
961966
):
@@ -1029,7 +1034,9 @@ def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_
10291034
self.assertEqual(api.execute_sql.call_count, 2)
10301035
self.assertEqual(api.execute_batch_dml.call_count, 1)
10311036

1032-
@pytest.mark.skip(reason="Inherently flaky, relies on thread crash swallowing in older Pytest")
1037+
@pytest.mark.skip(
1038+
reason="Inherently flaky, relies on thread crash swallowing in older Pytest"
1039+
)
10331040
def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_batch_update(
10341041
self,
10351042
):
@@ -1096,7 +1103,9 @@ def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_
10961103
)
10971104
self.assertEqual(actual_id_suffixes, expected_id_suffixes)
10981105

1099-
@pytest.mark.skip(reason="Inherently flaky, relies on thread crash swallowing in older Pytest")
1106+
@pytest.mark.skip(
1107+
reason="Inherently flaky, relies on thread crash swallowing in older Pytest"
1108+
)
11001109
def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_read(
11011110
self,
11021111
):
@@ -1170,7 +1179,9 @@ def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_
11701179
)
11711180
self.assertEqual(actual_id_suffixes, expected_id_suffixes)
11721181

1173-
@pytest.mark.skip(reason="Inherently flaky, relies on thread crash swallowing in older Pytest")
1182+
@pytest.mark.skip(
1183+
reason="Inherently flaky, relies on thread crash swallowing in older Pytest"
1184+
)
11741185
def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_query(
11751186
self,
11761187
):

0 commit comments

Comments
 (0)