Skip to content

Commit acb8cca

Browse files
authored
Apply suggestions from code review
1 parent 519ee16 commit acb8cca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ def ascii_read_text(self, encoding=None, errors=None):
7474
encoding = "ascii"
7575
return original_read_text(self, encoding=encoding, errors=errors)
7676

77-
def ascii_write_text(self, data, encoding=None, errors=None, newline=None):
77+
def ascii_write_text(self, data, encoding=None, errors=None, **kwargs):
7878
if encoding is None:
7979
encoding = "ascii"
80-
return original_write_text(self, data, encoding=encoding, errors=errors, newline=newline)
80+
return original_write_text(self, data, encoding=encoding, errors=errors, **kwargs)
8181

8282
monkeypatch.setattr(pathlib.Path, "read_text", ascii_read_text)
8383
monkeypatch.setattr(pathlib.Path, "write_text", ascii_write_text)

0 commit comments

Comments
 (0)