Skip to content

Commit ee3b0e9

Browse files
committed
Revert to universal_newlines
text was only introduced in Python 3.7.
1 parent 35ed73a commit ee3b0e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/test/test_args.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_exec_dunder_file(self):
2727
p = subprocess.Popen(
2828
[sys.executable] + ["-m", "bpython.curtsies", f.name],
2929
stderr=subprocess.PIPE,
30-
text=True,
30+
universal_newlines=True,
3131
)
3232
(_, stderr) = p.communicate()
3333

@@ -66,7 +66,7 @@ def test_exec_nonascii_file_linenums(self):
6666
p = subprocess.Popen(
6767
[sys.executable, "-m", "bpython.curtsies", f.name],
6868
stderr=subprocess.PIPE,
69-
text=True,
69+
universal_newlines=True,
7070
)
7171
(_, stderr) = p.communicate()
7272

0 commit comments

Comments
 (0)