Skip to content

Commit 38b58a5

Browse files
committed
Satisfy EncodingWarning by passing the encoding.
1 parent 3ff7b64 commit 38b58a5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

distutils/tests/test_dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def test_find_config_files_permission_error(self, fake_home):
257257
"""
258258
Finding config files should not fail when directory is inaccessible.
259259
"""
260-
fake_home.joinpath(pydistutils_cfg).write_text('')
260+
fake_home.joinpath(pydistutils_cfg).write_text('', encoding='utf-8')
261261
fake_home.chmod(0o000)
262262
Distribution().find_config_files()
263263

pytest.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@ filterwarnings=
3737

3838
# pytest-dev/pyfakefs#957
3939
ignore:UTF-8 Mode affects locale.getpreferredencoding::pyfakefs.fake_file
40-
ignore:'encoding' argument not specified::pyfakefs.helpers

0 commit comments

Comments
 (0)