| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
======================================================================
FAIL: test_preexec_gc_module_failure (test.test_subprocess.POSIXProcessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/cpython/cpython/Lib/test/test_subprocess.py", line 2170, in test_preexec_gc_module_failure
self.assertRaises(RuntimeError, subprocess.Popen,
AssertionError: RuntimeError not raised by Popen
👀 |
Sorry, something went wrong.
|
Thanks. I fixed test_subprocess. |
Sorry, something went wrong.
|
Actually, I think much of this could already have been saved before by using the ID-string API. But still, this is just so much better. |
Sorry, something went wrong.
I don't think that using cached interned strings is really relevant here, spawning a subprocess takes a few milliseconds, we are far from nanoseconds avoided thanks to the cache. Anyway, it's now gone ;-) |
Sorry, something went wrong.
There was a problem hiding this comment.
yay, thanks for the cleanup!
Sorry, something went wrong.
| preexec_fn=lambda: None) | ||
| finally: | ||
| gc.disable = orig_gc_disable | ||
| gc.isenabled = orig_gc_isenabled |
There was a problem hiding this comment.
saving and restoring these two with the try: finally: seems no longer necessary now that they're not being monkeypatched out to cause errors. (harmless, but anyone reading this will wonder why...)
Sorry, something went wrong.
There was a problem hiding this comment.
Oh, you're right: I created #25709
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
https://bugs.python.org/issue28254