Skip to content

Commit 1dec0ab

Browse files
committed
Update examples to force "print()" output to the terminal
1 parent 6f56679 commit 1dec0ab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/test_chinese_pdf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
import sys
23
from seleniumbase import BaseCase
34

45

@@ -12,7 +13,7 @@ def test_chinese_pdf(self):
1213

1314
# Get and print PDF text
1415
pdf_text = self.get_pdf_text(pdf, page=2)
15-
print("\n" + pdf_text)
16+
print("\n" + pdf_text, file=sys.stderr)
1617

1718
# Assert PDF contains the expected text on Page 2
1819
self.assert_pdf_text(pdf, "个测试类", page=2)

examples/test_get_pdf_text.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from seleniumbase import BaseCase
23

34

@@ -8,4 +9,4 @@ def test_get_pdf_text(self):
89
"Automate_the_Boring_Stuff_sample_ch17.pdf"
910
)
1011
pdf_text = self.get_pdf_text(pdf, page=1)
11-
print("\n" + pdf_text)
12+
print("\n" + pdf_text, file=sys.stderr)

0 commit comments

Comments
 (0)