Update examples to force "print()" output to the terminal

This commit is contained in:
Michael Mintz 2021-07-28 11:07:19 -04:00
parent 6f566794c8
commit 1dec0abb2c
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
import sys
from seleniumbase import BaseCase
@ -12,7 +13,7 @@ class ChinesePdfTests(BaseCase):
# Get and print PDF text
pdf_text = self.get_pdf_text(pdf, page=2)
print("\n" + pdf_text)
print("\n" + pdf_text, file=sys.stderr)
# Assert PDF contains the expected text on Page 2
self.assert_pdf_text(pdf, "个测试类", page=2)

View File

@ -1,3 +1,4 @@
import sys
from seleniumbase import BaseCase
@ -8,4 +9,4 @@ class PdfTests(BaseCase):
"Automate_the_Boring_Stuff_sample_ch17.pdf"
)
pdf_text = self.get_pdf_text(pdf, page=1)
print("\n" + pdf_text)
print("\n" + pdf_text, file=sys.stderr)