Skip to content

Commit 2efedfd

Browse files
authored
Merge pull request #37045 from apache/cherrypick-37018
Cherrypick #37018 to release-2.70
2 parents c310f0f + 1b7195c commit 2efedfd

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"comment": "Modify this file in a trivial way to cause this test suite to run",
3-
"modification": 14
3+
"modification": 15
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"comment": "Modify this file in a trivial way to cause this test suite to run",
3-
"modification": 14
3+
"modification": 15
44
}

sdks/python/apache_beam/io/gcp/tests/xlang_spannerio_it_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ def setUpClass(cls):
103103
)
104104

105105
pipeline = TestPipeline(is_integration_test=True)
106+
107+
runner_name = type(pipeline.runner).__name__
108+
if 'DataflowRunner' in runner_name:
109+
pytest.skip("Spanner emulator not compatible with dataflow runner.")
110+
106111
argv = pipeline.get_full_options_as_args()
107112

108113
known_args, _ = parser.parse_known_args(argv)

sdks/python/apache_beam/ml/rag/ingestion/spanner_it_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ class SpannerVectorWriterTest(unittest.TestCase):
138138
@classmethod
139139
def setUpClass(cls):
140140
"""Set up Spanner emulator for all tests."""
141+
pipeline = TestPipeline(is_integration_test=True)
142+
runner_name = type(pipeline.runner).__name__
143+
if 'DataflowRunner' in runner_name:
144+
pytest.skip("Spanner emulator not compatible with dataflow runner.")
145+
141146
cls.project_id = 'test-project'
142147
cls.instance_id = 'test-instance'
143148
cls.table_name = 'embeddings'

0 commit comments

Comments
 (0)