[issue37873] unittest: execute tests in parallel

2020-08-10 Thread D. A. Pellegrino


D. A. Pellegrino  added the comment:

Leveraging GNU Parallel (https://www.gnu.org/software/parallel/) might help 
simplify implementation. Perhaps that could be used as a subprocess call?

--

___
Python tracker 
<https://bugs.python.org/issue37873>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41516] venv activate scripts do not pass ShellCheck

2020-08-10 Thread D. A. Pellegrino


New submission from D. A. Pellegrino :

The activate scripts created by the venv module do not pass checks by 
ShellCheck (https://www.shellcheck.net/). ShellCheck generally has a point for 
each warning and note generated against the venv activate scripts. Addressing 
the ShellCheck reports would align the activate script implementation with best 
practices.

--
components: Extension Modules
messages: 375125
nosy: user93448
priority: normal
severity: normal
status: open
title: venv activate scripts do not pass ShellCheck
type: enhancement
versions: Python 3.6

___
Python tracker 
<https://bugs.python.org/issue41516>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37873] unittest: execute tests in parallel

2019-08-16 Thread D. A. Pellegrino


New submission from D. A. Pellegrino :

The unittest documentation makes reference to a potential parallelization 
feature:

"Note that shared fixtures do not play well with [potential] features like test 
parallelization and they break test isolation. They should be used with care." 
(https://docs.python.org/3/library/unittest.html)

However, it seems that executing tests in parallel is not yet a feature of 
unittest. This enhancement request is to add parallel execution of tests to 
unittest.

A command line option may be a good interface. Ideally, it would be compatible 
with test discovery. Outside of the Python ecosystem, a common practice is to 
define test cases in a Makefile and then execute GNU Make with the '-j' flag 
(https://www.gnu.org/software/make/manual/html_node/Parallel.html#Parallel). 
Adding such an option to unittest would be a convenience and may save the 
effort of bringing in additional libraries or tools for parallel unit test 
execution.

--
components: Library (Lib)
messages: 349864
nosy: user93448
priority: normal
severity: normal
status: open
title: unittest: execute tests in parallel
type: enhancement
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue37873>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com