We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e337755 commit 602c864Copy full SHA for 602c864
seleniumbase/fixtures/base_case.py
@@ -8000,15 +8000,15 @@ def _print(self, msg):
8000
To force a print during multithreaded tests, use: "sys.stderr.write()".
8001
To print without the new-line character end, use: "sys.stdout.write()".
8002
"""
8003
- if not sb_config._multithreaded:
8004
- print(msg)
8005
- else:
+ if hasattr(sb_config, "_multithreaded") and sb_config._multithreaded:
8006
if type(msg) is not str:
8007
try:
8008
msg = str(msg)
8009
except Exception:
8010
pass
8011
sys.stderr.write(msg + "\n")
+ else:
+ print(msg)
8012
8013
def start_tour(self, name=None, interval=0):
8014
self.play_tour(name=name, interval=interval)
0 commit comments