mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Fix EncodingWarning in test_tools. (GH-28846)
This commit is contained in:
parent
3d1ca867ed
commit
a1c3c9e824
7 changed files with 29 additions and 25 deletions
|
|
@ -22,7 +22,7 @@ def test_lll_multiple_dirs(self):
|
|||
fn1 = os.path.join(dir1, 'foo1')
|
||||
fn2 = os.path.join(dir2, 'foo2')
|
||||
for fn, dir in (fn1, dir1), (fn2, dir2):
|
||||
open(fn, 'w').close()
|
||||
open(fn, 'wb').close()
|
||||
os.symlink(fn, os.path.join(dir, 'symlink'))
|
||||
|
||||
with support.captured_stdout() as output:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue