Skip to content

Commit

Permalink
Satisfy EncodingWarning by passing the encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 3, 2024
1 parent 3ff7b64 commit 38b58a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion distutils/tests/test_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def test_find_config_files_permission_error(self, fake_home):
"""
Finding config files should not fail when directory is inaccessible.
"""
fake_home.joinpath(pydistutils_cfg).write_text('')
fake_home.joinpath(pydistutils_cfg).write_text('', encoding='utf-8')
fake_home.chmod(0o000)
Distribution().find_config_files()

Expand Down
1 change: 0 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ filterwarnings=

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

0 comments on commit 38b58a5

Please sign in to comment.