beeware / cricket

A GUI tool for running Python test suites.
BSD 3-Clause "New" or "Revised" License
213 stars 68 forks source link

subprocess Runtime warning: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used #91

Open DarkTrick opened 3 years ago

DarkTrick commented 3 years ago

Describe the bug Running "Run selected" on a top-level item, causes "Test output ended unexpectedly" in cricket with the following message in the console.

/usr/lib/python3.8/subprocess.py:844: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  self.stdout = io.open(c2pread, 'rb', bufsize)
/usr/lib/python3.8/subprocess.py:849: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  self.stderr = io.open(errread, 'rb', bufsize)

(This does not happen, when I "Run all")

To Reproduce

  1. Create a test project
  2. Open cricket
  3. Select test "folder"
  4. Click "Run selected"
  5.  
    • EXPECTED: Tests run and their output is shown.
    • ACTUAL: Test results are not shown (I can't tell if tests were run)

Misc

Screenshots image

Environment: