Skip to content

Commit 96e1074

Browse files
committed
Adjust test_sandbox to encoding change
1 parent dea08d7 commit 96e1074

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setuptools/tests/test_sandbox.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ def write_file():
126126
cmd, args, kwargs = caught.value.args
127127
assert cmd == 'open'
128128
assert args == ('/etc/foo', 'w')
129-
assert kwargs == {}
129+
assert kwargs == {"encoding": "utf-8"}
130130

131131
msg = str(caught.value)
132132
assert 'open' in msg
133133
assert "('/etc/foo', 'w')" in msg
134+
assert "{'encoding': 'utf-8'}" in msg

0 commit comments

Comments
 (0)