| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
On FreeBSD, skip test_script_as_dev_fd() of test_cmd_line_script if fdescfs is not mounted (at /dev/fd).
|
With this PR, the test is now skipped on FreeBSD: $ ./python -m test test_cmd_line_script -v -m test_script_as_dev_fd (...) test_script_as_dev_fd (test.test_cmd_line_script.CmdLineTest.test_script_as_dev_fd) ... skipped 'Requires fdescfs mounted on /dev/fd on FreeBSD' If I mount manually /dev/fd, it works as expected: $ sudo mount -t fdescfs none /dev/fd
$ ./python -m test test_cmd_line_script -v -m test_script_as_dev_fd
(...)
test_script_as_dev_fd (test.test_cmd_line_script.CmdLineTest.test_script_as_dev_fd) ...
/usr/home/vstinner/python/main/Lib/subprocess.py:849: RuntimeWarning: pass_fds overriding close_fds.
warnings.warn("pass_fds overriding close_fds.", RuntimeWarning)
ok
(...)
By the way, the test emits a warning because of this Lib/subprocess.py code: if pass_fds and not close_fds:
warnings.warn("pass_fds overriding close_fds.", RuntimeWarning)
close_fds = True
|
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, something went wrong.
|
Sorry, @vstinner, I could not cleanly backport this to 3.10 due to a conflict. |
Sorry, something went wrong.
|
GH-100007 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
|
Ah, test_script_as_dev_fd() was not backported to Python 3.10. |
Sorry, something went wrong.
|
It was, in #99817. |
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, something went wrong.
|
Sorry, @vstinner, I could not cleanly backport this to 3.9 due to a conflict. cherry_picker 038b151963d9d4a5f4c852544fb5b0402ffcb218 3.9 |
Sorry, something went wrong.
|
GH-125109 is a backport of this pull request to the 3.10 branch. |
Sorry, something went wrong.
…#125109) gh-100005: Skip test_script_as_dev_fd() on FreeBSD (GH-100006) On FreeBSD, skip test_script_as_dev_fd() of test_cmd_line_script if fdescfs is not mounted (at /dev/fd). (cherry picked from commit 038b151) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Petr Viktorin <encukou@gmail.com>
| Back | FazBrowse Home | New Git URL |
On FreeBSD, skip test_script_as_dev_fd() of test_cmd_line_script if fdescfs is not mounted (at /dev/fd).