#27890: runtests.py cleanup exception on Python 3.6
---------------------------------+------------------------------------
     Reporter:  Vytis Banaitis   |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  Core (Other)     |                  Version:  1.11
     Severity:  Release blocker  |               Resolution:
     Keywords:                   |             Triage Stage:  Accepted
    Has patch:  1                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+------------------------------------

Comment (by Tim Graham):

 Rather than the rearranging imports approach of the first PR, an
 alternative [https://github.com/django/django/pull/8210 PR] deletes
 multiprocessing's temporary directory removal handler to avoid the error.

 Going forward, patching cpython to ignore the error might be an option:
 {{{ #!diff
 diff --git a/Lib/multiprocessing/util.py b/Lib/multiprocessing/util.py
 index 1a2c0db..6843d09 100644
 --- a/Lib/multiprocessing/util.py
 +++ b/Lib/multiprocessing/util.py
 @@ -113,7 +113,7 @@ def get_temp_dir():
          import shutil, tempfile
          tempdir = tempfile.mkdtemp(prefix='pymp-')
          info('created temp directory %s', tempdir)
 -        Finalize(None, shutil.rmtree, args=[tempdir], exitpriority=-100)
 +        Finalize(None, shutil.rmtree, args=[tempdir],
 kwargs={'ignore_errors': True}, exitpriority=-100)
          process.current_process()._config['tempdir'] = tempdir
      return tempdir

 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27890#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.90278070cbd520b756c3bda06052cb90%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to