Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  Suppress `ResourceWarning` for still-running subprocesses in PyPy UI tests
  
  **Description:  **
  When running the UI test suite under PyPy, frequent `ResourceWarning` 
messages occur due to subprocesses (e.g. created by `subprocess.Popen`) not 
being properly terminated. These warnings clutter the test output and can cause 
test failures despite correct logic.
  
  **Problem:  **
  
  - Subprocesses remain running in the PyPy environment, triggering 
`ResourceWarning: subprocess ... is still running`.
  - The issue appears mainly in input-related tests (`input_choice`, 
`input_yn`) that internally use `subprocess`.
  
  **Proposal:  **
  
  - Add `suppress_warnings` to `TestTerminalInput.testInputChoiceNonCapital` as 
a context manager or decorator
  - This suppresses irrelevant warnings without altering test logic or 
subprocess behavior.
  
  **Benefits:  **
  
  - Cleaner test output free from distracting `ResourceWarning` messages.
  - Avoids test failures caused solely by warnings.

TASK DETAIL
  https://phabricator.wikimedia.org/T401187

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to