EncodingWarning when PYTHONWARNDEFAULTENCODING=1

Bug #2029023 reported by Jason R. Coombs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MockProc
New
Undecided
Unassigned

Bug Description

When PYTHONWARNDEFAULTENCODING=1, tests using mockproc emit the following warning:

```
  /Users/jaraco/code/jaraco/jaraco.home/.tox/py/lib/python3.11/site-packages/mockproc/mockprocess.py:53: EncodingWarning: 'encoding' argument not specified
    fh = open( filename, 'w' )
```

Revision history for this message
Jason R. Coombs (jaraco) wrote :

Probably the best solution is to pass `encoding='utf-8'` to that call to `open`.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.