Author vstinner
Recipients davin, martin.panter, pitrou, serhiy.storchaka, vstinner
Date 2017-07-24.11:13:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500894786.91.0.36737049447.issue26762@psf.upfronthosting.co.za>
In-reply-to
Content
If you want to use --fail-env-changed with PR 2841, for example to use test.bisect, you may want this extra patch:

diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index f2342c3..5f9e5c3 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -4352,6 +4352,7 @@ class ManagerMixin(object):
                       "children after %s seconds"
                       % (multiprocessing.active_children(), dt),
                       file=sys.stderr)
+                test.support.environment_altered = True
                 break
 
         gc.collect()                       # do garbage collection
@@ -4359,6 +4360,7 @@ class ManagerMixin(object):
             # This is not really an error since some tests do not
             # ensure that all processes which hold a reference to a
             # managed object have been joined.
+            test.support.environment_altered = True
             print('Warning -- Shared objects which still exist at manager '
                   'shutdown:')
             print(cls.manager._debug_info())
History
Date User Action Args
2017-07-24 11:13:06vstinnersetrecipients: + vstinner, pitrou, martin.panter, serhiy.storchaka, davin
2017-07-24 11:13:06vstinnersetmessageid: <1500894786.91.0.36737049447.issue26762@psf.upfronthosting.co.za>
2017-07-24 11:13:06vstinnerlinkissue26762 messages
2017-07-24 11:13:06vstinnercreate