[issue24055] unittest package-level set up & tear down module

2021-10-22 Thread Irit Katriel


Irit Katriel  added the comment:

This was added under issue30108.

--
nosy: +iritkatriel
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> closed
superseder:  -> test_site modifies sys.path

___
Python tracker 

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



[issue24055] unittest package-level set up tear down module

2015-08-23 Thread Robert Collins

Robert Collins added the comment:

Personally I'm very skeptical of all the multi-test setup facilties because of 
the very poor interactions with parallel testing that this basic approach has. 
But - we haven't yet brought in something sensible to let us deprecate 
setUpModule and setUpClass, so I could not reject it on that basis.

I'd have to see a patch or a prototype to comment on the maintainability etc.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24055
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24055] unittest package-level set up tear down module

2015-04-24 Thread Demian Brecht

New submission from Demian Brecht:

There's a feature available via nose that might be nice to have in unittest: 
package-level setup and teardown functions.

Using nose, I can define a setUpModule() method in a test package's __init__.py 
and it will execute it during the test run. This is helpful for test packages 
that test related features and may have expensive setup/teardown routines. By 
having the test runner pick up setup/teardown methods in __init__.py, I can now 
incur this expense once rather than once per module.

I don't mind putting a patch together for this if others think this might be 
beneficial.

--
components: Library (Lib)
messages: 241981
nosy: demian.brecht, ezio.melotti, michael.foord, rbcollins
priority: normal
severity: normal
stage: needs patch
status: open
title: unittest package-level set up  tear down module
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24055
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com