Skip to content

Commit df78be0

Browse files
committed
fix tests
1 parent 49c3af0 commit df78be0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdks/python/apache_beam/io/gcp/pubsub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def __init__(self, transform):
577577

578578
# Check if using DirectRunner
579579
runner_name = getattr(pipeline_options, 'runner', None)
580-
if runner_name and 'DirectRunner' in str(runner_name):
580+
if runner_name is None or 'DirectRunner' in str(runner_name):
581581
should_raise_error = True
582582

583583
# Check if in batch mode (not streaming)

0 commit comments

Comments
 (0)