Skip to content

bpo-29341: Added path.like object to docstring in posixmodule.c and posixmodule.c.h#10101

Merged
pablogsal merged 11 commits into
python:masterfrom
BNMetrics:os_docstring
Nov 2, 2018
Merged

bpo-29341: Added path.like object to docstring in posixmodule.c and posixmodule.c.h#10101
pablogsal merged 11 commits into
python:masterfrom
BNMetrics:os_docstring

Conversation

@BNMetrics

@BNMetrics BNMetrics commented Oct 25, 2018

Copy link
Copy Markdown
Contributor

@BNMetrics

Copy link
Copy Markdown
Contributor Author

All changes on the docstring have been verified and tested, and these os method do indeed take PathLike objects as the path.

@@ -0,0 +1 @@
Added path-like objects to docstrings of os methods that accept path

@pablogsal pablogsal Oct 29, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this a bit confusing. I would rewrite so it says:

Clarify in the docstrings of :mod:`os` methods that path-like objects are also accepted
as input parameters.

Comment thread Modules/posixmodule.c Outdated

path: path_t
Path to be tested; can be string or bytes
Path to be tested; can be string, bytes, or path-like object

@pablogsal pablogsal Oct 29, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs an "a": or **a** path-like object? (The same for the rest of the methods)

@pablogsal pablogsal self-assigned this Oct 29, 2018
@BNMetrics

Copy link
Copy Markdown
Contributor Author

@pablogsal Thanks so much for the review. I have made the changes suggested now! 👍

Comment thread Modules/posixmodule.c
os.access -> bool

path: path_t
Path to be tested; can be string or bytes

@pablogsal pablogsal Nov 2, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a . at the end of this sentence? :)

Path to be tested; can be string, bytes, or a path-like object.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! :)

Comment thread Modules/posixmodule.c Outdated
pablogsal and others added 2 commits November 2, 2018 14:11

@pablogsal pablogsal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much @BNMetrics for the PR and for the patience going through the review! 🎉

LGTM

@BNMetrics

Copy link
Copy Markdown
Contributor Author

Thank you so much @pablogsal !

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @BNMetrics for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @BNMetrics for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry, @BNMetrics and @pablogsal, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker b942707fc23454a998323c17e30be78ff1a4f0e7 3.7

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry, @BNMetrics and @pablogsal, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker b942707fc23454a998323c17e30be78ff1a4f0e7 3.6

@pablogsal

pablogsal commented Nov 2, 2018

Copy link
Copy Markdown
Member

Yup, I think it was a bit naive to think that the automatic backport will work. This is because the clinic file needs to be correctly regenerated after the patch is applied (which can have some conflicts as well). @BNMetrics Do you want to do the manual backport PRs? If you don't want to I can do them myself :)

BNMetrics added a commit to BNMetrics/cpython that referenced this pull request Nov 2, 2018
…os methods (pythonGH-10101)

Some methods in the os module can accept path-like objects. This is documented in the general documentation but not in the function docstrings. To keep both in sync, the docstrings need to be updated to reflect that path-like objects are also accepted..
(cherry picked from commit b942707)

Co-authored-by: BNMetrics <luna@bnmetrics.com>
@bedevere-bot

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 FreeBSD CURRENT Shared 3.x has failed when building commit b942707.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/168/builds/168) and take a look at the build logs.
  4. Check if the failure is related to this commit (b942707) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/168/builds/168

Click to see traceback logs
From https://github.com/python/cpython
 * branch                  master     -> FETCH_HEAD
Reset branch 'master'

stty: stdin isn't a terminal
test_spwd skipped -- No module named 'spwd'
test_ttk_textonly skipped -- No module named '_tkinter'
test_winconsoleio skipped -- test only relevant on win32
test_tcl skipped -- No module named '_tkinter'
test_ttk_guionly skipped -- No module named '_tkinter'
test_dbm_gnu skipped -- No module named '_gdbm'
test_ioctl skipped -- Unable to open /dev/tty
test_winsound skipped -- No module named 'winsound'
test_turtle skipped -- No module named '_tkinter'
test_ossaudiodev skipped -- [Errno 2] No such file or directory: '/dev/dsp'
test_tk skipped -- No module named '_tkinter'
test_epoll skipped -- test works only on Linux 2.6
test_tix skipped -- No module named '_tkinter'
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_winreg skipped -- No module named 'winreg'
test_devpoll skipped -- test works only on Solaris OS family
test__all__ (test.test_multiprocessing_fork.MiscTestCase) ... ok
test_answer_challenge_auth_failure (test.test_multiprocessing_fork.OtherTest) ... ok
test_deliver_challenge_auth_failure (test.test_multiprocessing_fork.OtherTest) ... ok
test_closefd (test.test_multiprocessing_fork.TestCloseFds) ... ok
test_flags (test.test_multiprocessing_fork.TestFlags) ... ok
test_lock (test.test_multiprocessing_fork.TestForkAwareThreadLock) ... ok
test_ignore (test.test_multiprocessing_fork.TestIgnoreEINTR) ... ok
test_ignore_listener (test.test_multiprocessing_fork.TestIgnoreEINTR) ... ok
test_manager_initializer (test.test_multiprocessing_fork.TestInitializers) ... ok
test_pool_initializer (test.test_multiprocessing_fork.TestInitializers) ... ok
test_invalid_family (test.test_multiprocessing_fork.TestInvalidFamily) ... ok
test_invalid_family_win32 (test.test_multiprocessing_fork.TestInvalidFamily) ... skipped 'skipped on non-Windows platforms'
test_invalid_handles (test.test_multiprocessing_fork.TestInvalidHandle) ... ok
test_noforkbomb (test.test_multiprocessing_fork.TestNoForkBomb) ... ok
test_semaphore_tracker (test.test_multiprocessing_fork.TestSemaphoreTracker) ... ok
test_semaphore_tracker_sigint (test.test_multiprocessing_fork.TestSemaphoreTracker) ... ok
test_semaphore_tracker_sigkill (test.test_multiprocessing_fork.TestSemaphoreTracker) ... ok
test_semaphore_tracker_sigterm (test.test_multiprocessing_fork.TestSemaphoreTracker) ... ok
test_empty (test.test_multiprocessing_fork.TestSimpleQueue) ... ok
test_context (test.test_multiprocessing_fork.TestStartMethod) ... ok
test_get_all (test.test_multiprocessing_fork.TestStartMethod) ... ok
test_preload_resources (test.test_multiprocessing_fork.TestStartMethod) ... skipped "test only relevant for 'forkserver' method"
test_set_get (test.test_multiprocessing_fork.TestStartMethod) ... ok
test_flushing (test.test_multiprocessing_fork.TestStdinBadfiledescriptor) ... ok
test_pool_in_process (test.test_multiprocessing_fork.TestStdinBadfiledescriptor) ... ok
test_queue_in_process (test.test_multiprocessing_fork.TestStdinBadfiledescriptor) ... ok
test_timeout (test.test_multiprocessing_fork.TestTimeouts) ... ok
test_neg_timeout (test.test_multiprocessing_fork.TestWait) ... ok
test_wait (test.test_multiprocessing_fork.TestWait) ... ok
test_wait_integer (test.test_multiprocessing_fork.TestWait) ... ok
test_wait_slow (test.test_multiprocessing_fork.TestWait) ... ok
test_wait_socket (test.test_multiprocessing_fork.TestWait) ... ok
test_wait_socket_slow (test.test_multiprocessing_fork.TestWait) ... ok
test_wait_timeout (test.test_multiprocessing_fork.TestWait) ... ok
test_abort (test.test_multiprocessing_fork.WithManagerTestBarrier) ... ok
test_abort_and_reset (test.test_multiprocessing_fork.WithManagerTestBarrier) ... ok
test_action (test.test_multiprocessing_fork.WithManagerTestBarrier) ... ok
test_barrier (test.test_multiprocessing_fork.WithManagerTestBarrier) ... ok
test_barrier_10 (test.test_multiprocessing_fork.WithManagerTestBarrier) ... ok
test_default_timeout (test.test_multiprocessing_fork.WithManagerTestBarrier) ... ok
test_reset (test.test_multiprocessing_fork.WithManagerTestBarrier) ... ok
test_single_thread (test.test_multiprocessing_fork.WithManagerTestBarrier) ... ok
test_thousand (test.test_multiprocessing_fork.WithManagerTestBarrier) ... skipped 'test not appropriate for manager'
test_timeout (test.test_multiprocessing_fork.WithManagerTestBarrier) ... ok
test_wait_return (test.test_multiprocessing_fork.WithManagerTestBarrier) ... ok
test_notify (test.test_multiprocessing_fork.WithManagerTestCondition) ... ok
test_notify_all (test.test_multiprocessing_fork.WithManagerTestCondition) ... ok
test_notify_n (test.test_multiprocessing_fork.WithManagerTestCondition) ... ok
test_timeout (test.test_multiprocessing_fork.WithManagerTestCondition) ... ok
test_wait_result (test.test_multiprocessing_fork.WithManagerTestCondition) ... ok
test_waitfor (test.test_multiprocessing_fork.WithManagerTestCondition) ... ok
test_waitfor_timeout (test.test_multiprocessing_fork.WithManagerTestCondition) ... ok
test_dict (test.test_multiprocessing_fork.WithManagerTestContainers) ... ok
test_dict_iter (test.test_multiprocessing_fork.WithManagerTestContainers) ... ok
test_dict_proxy_nested (test.test_multiprocessing_fork.WithManagerTestContainers) ... ok
test_list (test.test_multiprocessing_fork.WithManagerTestContainers) ... ok
test_list_iter (test.test_multiprocessing_fork.WithManagerTestContainers) ... ok
test_list_proxy_in_list (test.test_multiprocessing_fork.WithManagerTestContainers) ... ok
test_namespace (test.test_multiprocessing_fork.WithManagerTestContainers) ... ok
test_event (test.test_multiprocessing_fork.WithManagerTestEvent) ... ok
test_lock (test.test_multiprocessing_fork.WithManagerTestLock) ... ok
test_lock_context (test.test_multiprocessing_fork.WithManagerTestLock) ... ok
test_rlock (test.test_multiprocessing_fork.WithManagerTestLock) ... ok
test_rapid_restart (test.test_multiprocessing_fork.WithManagerTestManagerRestart) ... ok
test_mymanager (test.test_multiprocessing_fork.WithManagerTestMyManager) ... ok
test_mymanager_context (test.test_multiprocessing_fork.WithManagerTestMyManager) ... ok
test_mymanager_context_prestarted (test.test_multiprocessing_fork.WithManagerTestMyManager) ... ok
test_apply (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_async (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_async_timeout (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_context (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_del_pool (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_empty_iterable (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_imap (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_imap_handle_iterable_exception (test.test_multiprocessing_fork.WithManagerTestPool) ... skipped 'test not appropriate for manager'
test_imap_unordered (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_imap_unordered_handle_iterable_exception (test.test_multiprocessing_fork.WithManagerTestPool) ... skipped 'test not appropriate for manager'
test_make_pool (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_map (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_map_async (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_map_async_callbacks (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_map_chunksize (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_map_handle_iterable_exception (test.test_multiprocessing_fork.WithManagerTestPool) ... skipped 'test not appropriate for manager'
test_map_no_failfast (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_map_unplicklable (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_release_task_refs (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_starmap (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_starmap_async (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_terminate (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_traceback (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_wrapped_exception (test.test_multiprocessing_fork.WithManagerTestPool) ... ok
test_closed_queue_put_get_exceptions (test.test_multiprocessing_fork.WithManagerTestQueue) ... ok
test_fork (test.test_multiprocessing_fork.WithManagerTestQueue) ... ok
test_get (test.test_multiprocessing_fork.WithManagerTestQueue) ... ok
test_no_import_lock_contention (test.test_multiprocessing_fork.WithManagerTestQueue) ... ok
test_put (test.test_multiprocessing_fork.WithManagerTestQueue) ... ok
test_qsize (test.test_multiprocessing_fork.WithManagerTestQueue) ... ok
test_queue_feeder_donot_stop_onexc (test.test_multiprocessing_fork.WithManagerTestQueue) ... skipped 'test not appropriate for manager'
test_queue_feeder_on_queue_feeder_error (test.test_multiprocessing_fork.WithManagerTestQueue) ... skipped 'test not appropriate for manager'
test_task_done (test.test_multiprocessing_fork.WithManagerTestQueue) ... ok
test_timeout (test.test_multiprocessing_fork.WithManagerTestQueue) ... ok
test_remote (test.test_multiprocessing_fork.WithManagerTestRemoteManager) ... ok
test_bounded_semaphore (test.test_multiprocessing_fork.WithManagerTestSemaphore) ... ok
test_semaphore (test.test_multiprocessing_fork.WithManagerTestSemaphore) ... ok
test_timeout (test.test_multiprocessing_fork.WithManagerTestSemaphore) ... skipped 'test not appropriate for manager'
test_array (test.test_multiprocessing_fork.WithProcessesTestArray) ... ok
test_array_from_size (test.test_multiprocessing_fork.WithProcessesTestArray) ... ok
test_getobj_getlock_obj (test.test_multiprocessing_fork.WithProcessesTestArray) ... ok
test_rawarray (test.test_multiprocessing_fork.WithProcessesTestArray) ... ok
test_abort (test.test_multiprocessing_fork.WithProcessesTestBarrier) ... ok
test_abort_and_reset (test.test_multiprocessing_fork.WithProcessesTestBarrier) ... ok
test_action (test.test_multiprocessing_fork.WithProcessesTestBarrier) ... ok
test_barrier (test.test_multiprocessing_fork.WithProcessesTestBarrier) ... ok
test_barrier_10 (test.test_multiprocessing_fork.WithProcessesTestBarrier) ... ok
test_default_timeout (test.test_multiprocessing_fork.WithProcessesTestBarrier) ... ok
test_reset (test.test_multiprocessing_fork.WithProcessesTestBarrier) ... ok
test_single_thread (test.test_multiprocessing_fork.WithProcessesTestBarrier) ... ok
test_thousand (test.test_multiprocessing_fork.WithProcessesTestBarrier) ... ok
test_timeout (test.test_multiprocessing_fork.WithProcessesTestBarrier) ... ok
test_wait_return (test.test_multiprocessing_fork.WithProcessesTestBarrier) ... ok
test_notify (test.test_multiprocessing_fork.WithProcessesTestCondition) ... ok
test_notify_all (test.test_multiprocessing_fork.WithProcessesTestCondition) ... ok
test_notify_n (test.test_multiprocessing_fork.WithProcessesTestCondition) ... ok
test_timeout (test.test_multiprocessing_fork.WithProcessesTestCondition) ... ok
test_wait_result (test.test_multiprocessing_fork.WithProcessesTestCondition) ... ok
test_waitfor (test.test_multiprocessing_fork.WithProcessesTestCondition) ... ok
test_waitfor_timeout (test.test_multiprocessing_fork.WithProcessesTestCondition) ... ok
test_connection (test.test_multiprocessing_fork.WithProcessesTestConnection) ... ok
test_context (test.test_multiprocessing_fork.WithProcessesTestConnection) ... ok
test_duplex_false (test.test_multiprocessing_fork.WithProcessesTestConnection) ... ok
test_fd_transfer (test.test_multiprocessing_fork.WithProcessesTestConnection) ... ok
test_large_fd_transfer (test.test_multiprocessing_fork.WithProcessesTestConnection) ... ok
test_missing_fd_transfer (test.test_multiprocessing_fork.WithProcessesTestConnection) ... ok
test_sendbytes (test.test_multiprocessing_fork.WithProcessesTestConnection) ... ok
test_spawn_close (test.test_multiprocessing_fork.WithProcessesTestConnection) ... ok
test_event (test.test_multiprocessing_fork.WithProcessesTestEvent) ... ok
test_finalize (test.test_multiprocessing_fork.WithProcessesTestFinalize) ... ok
test_thread_safety (test.test_multiprocessing_fork.WithProcessesTestFinalize) ... ok
test_free_from_gc (test.test_multiprocessing_fork.WithProcessesTestHeap) ... ok
test_heap (test.test_multiprocessing_fork.WithProcessesTestHeap) ... ok
test_context (test.test_multiprocessing_fork.WithProcessesTestListener) ... ok
test_multiple_bind (test.test_multiprocessing_fork.WithProcessesTestListener) ... ok
test_issue14725 (test.test_multiprocessing_fork.WithProcessesTestListenerClient) ... ok
test_issue16955 (test.test_multiprocessing_fork.WithProcessesTestListenerClient) ... ok
test_listener_client (test.test_multiprocessing_fork.WithProcessesTestListenerClient) ... ok
test_lock (test.test_multiprocessing_fork.WithProcessesTestLock) ... ok
test_lock_context (test.test_multiprocessing_fork.WithProcessesTestLock) ... ok
test_rlock (test.test_multiprocessing_fork.WithProcessesTestLock) ... ok
test_enable_logging (test.test_multiprocessing_fork.WithProcessesTestLogging) ... ok
test_level (test.test_multiprocessing_fork.WithProcessesTestLogging) ... ok
test_rapid_restart (test.test_multiprocessing_fork.WithProcessesTestManagerRestart) ... ok
test_access (test.test_multiprocessing_fork.WithProcessesTestPicklingConnections) ... ok
test_pickling (test.test_multiprocessing_fork.WithProcessesTestPicklingConnections) ... ok
test_boundaries (test.test_multiprocessing_fork.WithProcessesTestPoll) ... ok
test_dont_merge (test.test_multiprocessing_fork.WithProcessesTestPoll) ... ok
test_empty_string (test.test_multiprocessing_fork.WithProcessesTestPoll) ... ok
test_strings (test.test_multiprocessing_fork.WithProcessesTestPoll) ... ok
test_poll_eintr (test.test_multiprocessing_fork.WithProcessesTestPollEintr) ... ok
test_apply (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_async (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_async_timeout (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_context (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_del_pool (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_empty_iterable (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_imap (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_imap_handle_iterable_exception (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_imap_unordered (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_imap_unordered_handle_iterable_exception (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_make_pool (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_map (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_map_async (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_map_async_callbacks (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_map_chunksize (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_map_handle_iterable_exception (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_map_no_failfast (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_map_unplicklable (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_release_task_refs (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_starmap (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_starmap_async (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_terminate (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_traceback (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_wrapped_exception (test.test_multiprocessing_fork.WithProcessesTestPool) ... ok
test_async_error_callback (test.test_multiprocessing_fork.WithProcessesTestPoolWorkerErrors) ... ok
test_unpickleable_result (test.test_multiprocessing_fork.WithProcessesTestPoolWorkerErrors) ... ok
test_pool_worker_lifetime (test.test_multiprocessing_fork.WithProcessesTestPoolWorkerLifetime) ... ok
test_pool_worker_lifetime_early_close (test.test_multiprocessing_fork.WithProcessesTestPoolWorkerLifetime) ... ok
test_active_children (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_child_fd_inflation (test.test_multiprocessing_fork.WithProcessesTestProcess) ... skipped 'test not appropriate for fork'
test_close (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_cpu_count (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_current (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_daemon_argument (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_error_on_stdio_flush_1 (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_error_on_stdio_flush_2 (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_forkserver_sigint (test.test_multiprocessing_fork.WithProcessesTestProcess) ... skipped 'test not appropriate for fork'
test_forkserver_sigkill (test.test_multiprocessing_fork.WithProcessesTestProcess) ... skipped 'test not appropriate for fork'
test_kill (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_lose_target_ref (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_many_processes (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_process (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_recursion (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_sentinel (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_terminate (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_wait_for_threads (test.test_multiprocessing_fork.WithProcessesTestProcess) ... ok
test_closed_queue_put_get_exceptions (test.test_multiprocessing_fork.WithProcessesTestQueue) ... ok
test_fork (test.test_multiprocessing_fork.WithProcessesTestQueue) ... ok
test_get (test.test_multiprocessing_fork.WithProcessesTestQueue) ... ok
test_no_import_lock_contention (test.test_multiprocessing_fork.WithProcessesTestQueue) ... ok
test_put (test.test_multiprocessing_fork.WithProcessesTestQueue) ... ok
test_qsize (test.test_multiprocessing_fork.WithProcessesTestQueue) ... ok
test_queue_feeder_donot_stop_onexc (test.test_multiprocessing_fork.WithProcessesTestQueue) ... ok
test_queue_feeder_on_queue_feeder_error (test.test_multiprocessing_fork.WithProcessesTestQueue) ... ok
test_task_done (test.test_multiprocessing_fork.WithProcessesTestQueue) ... ok
test_timeout (test.test_multiprocessing_fork.WithProcessesTestQueue) ... ok
test_bounded_semaphore (test.test_multiprocessing_fork.WithProcessesTestSemaphore) ... ok
test_semaphore (test.test_multiprocessing_fork.WithProcessesTestSemaphore) ... ok
test_timeout (test.test_multiprocessing_fork.WithProcessesTestSemaphore) ... ok
test_copy (test.test_multiprocessing_fork.WithProcessesTestSharedCTypes) ... ok
test_sharedctypes (test.test_multiprocessing_fork.WithProcessesTestSharedCTypes) ... ok
test_synchronize (test.test_multiprocessing_fork.WithProcessesTestSharedCTypes) ... ok
test_stderr_flush (test.test_multiprocessing_fork.WithProcessesTestSubclassingProcess) ... ok
test_subclassing (test.test_multiprocessing_fork.WithProcessesTestSubclassingProcess) ... ok
test_sys_exit (test.test_multiprocessing_fork.WithProcessesTestSubclassingProcess) ... ok
test_getobj_getlock (test.test_multiprocessing_fork.WithProcessesTestValue) ... ok
test_rawvalue (test.test_multiprocessing_fork.WithProcessesTestValue) ... ok
test_value (test.test_multiprocessing_fork.WithProcessesTestValue) ... ok
test_abort (test.test_multiprocessing_fork.WithThreadsTestBarrier) ... ok
test_abort_and_reset (test.test_multiprocessing_fork.WithThreadsTestBarrier) ... ok
test_action (test.test_multiprocessing_fork.WithThreadsTestBarrier) ... ok
test_barrier (test.test_multiprocessing_fork.WithThreadsTestBarrier) ... ok
test_barrier_10 (test.test_multiprocessing_fork.WithThreadsTestBarrier) ... ok
test_default_timeout (test.test_multiprocessing_fork.WithThreadsTestBarrier) ... ok
test_reset (test.test_multiprocessing_fork.WithThreadsTestBarrier) ... ok
test_single_thread (test.test_multiprocessing_fork.WithThreadsTestBarrier) ... ok
test_thousand (test.test_multiprocessing_fork.WithThreadsTestBarrier) ... ok
test_timeout (test.test_multiprocessing_fork.WithThreadsTestBarrier) ... ok
test_wait_return (test.test_multiprocessing_fork.WithThreadsTestBarrier) ... ok
test_notify (test.test_multiprocessing_fork.WithThreadsTestCondition) ... ok
test_notify_all (test.test_multiprocessing_fork.WithThreadsTestCondition) ... ok
test_notify_n (test.test_multiprocessing_fork.WithThreadsTestCondition) ... ok
test_timeout (test.test_multiprocessing_fork.WithThreadsTestCondition) ... ok
test_wait_result (test.test_multiprocessing_fork.WithThreadsTestCondition) ... ok
test_waitfor (test.test_multiprocessing_fork.WithThreadsTestCondition) ... ok
test_waitfor_timeout (test.test_multiprocessing_fork.WithThreadsTestCondition) ... ok
test_connection (test.test_multiprocessing_fork.WithThreadsTestConnection) ... ok
test_context (test.test_multiprocessing_fork.WithThreadsTestConnection) ... ok
test_duplex_false (test.test_multiprocessing_fork.WithThreadsTestConnection) ... ok
test_fd_transfer (test.test_multiprocessing_fork.WithThreadsTestConnection) ... skipped 'only makes sense with processes'
test_large_fd_transfer (test.test_multiprocessing_fork.WithThreadsTestConnection) ... skipped 'only makes sense with processes'
test_missing_fd_transfer (test.test_multiprocessing_fork.WithThreadsTestConnection) ... skipped 'only makes sense with processes'
test_sendbytes (test.test_multiprocessing_fork.WithThreadsTestConnection) ... skipped 'test not appropriate for threads'
test_spawn_close (test.test_multiprocessing_fork.WithThreadsTestConnection) ... ok
test_event (test.test_multiprocessing_fork.WithThreadsTestEvent) ... ok
test_issue14725 (test.test_multiprocessing_fork.WithThreadsTestListenerClient) ... ok
test_issue16955 (test.test_multiprocessing_fork.WithThreadsTestListenerClient) ... ok
test_listener_client (test.test_multiprocessing_fork.WithThreadsTestListenerClient) ... ok
test_lock (test.test_multiprocessing_fork.WithThreadsTestLock) ... ok
test_lock_context (test.test_multiprocessing_fork.WithThreadsTestLock) ... ok
test_rlock (test.test_multiprocessing_fork.WithThreadsTestLock) ... ok
test_rapid_restart (test.test_multiprocessing_fork.WithThreadsTestManagerRestart) ... ok
test_boundaries (test.test_multiprocessing_fork.WithThreadsTestPoll) ... ok
test_dont_merge (test.test_multiprocessing_fork.WithThreadsTestPoll) ... ok
test_empty_string (test.test_multiprocessing_fork.WithThreadsTestPoll) ... ok
test_strings (test.test_multiprocessing_fork.WithThreadsTestPoll) ... ok
test_apply (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_async (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_async_timeout (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_context (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_del_pool (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_empty_iterable (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_imap (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_imap_handle_iterable_exception (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_imap_unordered (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_imap_unordered_handle_iterable_exception (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_make_pool (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_map (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_map_async (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_map_async_callbacks (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_map_chunksize (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_map_handle_iterable_exception (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_map_no_failfast (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_map_unplicklable (test.test_multiprocessing_fork.WithThreadsTestPool) ... skipped 'test not appropriate for threads'
test_release_task_refs (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_starmap (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_starmap_async (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_terminate (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_traceback (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_wrapped_exception (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
Warning -- Dangling threads: {<DummyProcess(Thread-165, started daemon 34380025856)>}
test_active_children (test.test_multiprocessing_fork.WithThreadsTestProcess) ... ok
test_child_fd_inflation (test.test_multiprocessing_fork.WithThreadsTestProcess) ... skipped 'test not appropriate for threads'
test_close (test.test_multiprocessing_fork.WithThreadsTestProcess) ... skipped 'test not appropriate for threads'
test_cpu_count (test.test_multiprocessing_fork.WithThreadsTestProcess) ... ok
test_current (test.test_multiprocessing_fork.WithThreadsTestProcess) ... skipped 'test not appropriate for threads'
test_daemon_argument (test.test_multiprocessing_fork.WithThreadsTestProcess) ... skipped 'test not appropriate for threads'
test_error_on_stdio_flush_1 (test.test_multiprocessing_fork.WithThreadsTestProcess) ... ok
test_error_on_stdio_flush_2 (test.test_multiprocessing_fork.WithThreadsTestProcess) ... ok
test_forkserver_sigint (test.test_multiprocessing_fork.WithThreadsTestProcess) ... skipped 'test not appropriate for threads'
test_forkserver_sigkill (test.test_multiprocessing_fork.WithThreadsTestProcess) ... skipped 'test not appropriate for threads'
test_kill (test.test_multiprocessing_fork.WithThreadsTestProcess) ... skipped 'test not appropriate for threads'
test_lose_target_ref (test.test_multiprocessing_fork.WithThreadsTestProcess) ... ok
test_many_processes (test.test_multiprocessing_fork.WithThreadsTestProcess) ... skipped 'test not appropriate for threads'
test_process (test.test_multiprocessing_fork.WithThreadsTestProcess) ... ok
test_recursion (test.test_multiprocessing_fork.WithThreadsTestProcess) ... ok
test_sentinel (test.test_multiprocessing_fork.WithThreadsTestProcess) ... skipped 'test not appropriate for threads'
test_terminate (test.test_multiprocessing_fork.WithThreadsTestProcess) ... skipped 'test not appropriate for threads'
test_wait_for_threads (test.test_multiprocessing_fork.WithThreadsTestProcess) ... skipped 'test not appropriate for threads'
test_closed_queue_put_get_exceptions (test.test_multiprocessing_fork.WithThreadsTestQueue) ... ok
test_fork (test.test_multiprocessing_fork.WithThreadsTestQueue) ... ok
test_get (test.test_multiprocessing_fork.WithThreadsTestQueue) ... ok
test_no_import_lock_contention (test.test_multiprocessing_fork.WithThreadsTestQueue) ... ok
test_put (test.test_multiprocessing_fork.WithThreadsTestQueue) ... ok
test_qsize (test.test_multiprocessing_fork.WithThreadsTestQueue) ... ok
test_queue_feeder_donot_stop_onexc (test.test_multiprocessing_fork.WithThreadsTestQueue) ... skipped 'test not appropriate for threads'
test_queue_feeder_on_queue_feeder_error (test.test_multiprocessing_fork.WithThreadsTestQueue) ... skipped 'test not appropriate for threads'
test_task_done (test.test_multiprocessing_fork.WithThreadsTestQueue) ... ok
test_timeout (test.test_multiprocessing_fork.WithThreadsTestQueue) ... ok
test_bounded_semaphore (test.test_multiprocessing_fork.WithThreadsTestSemaphore) ... ok
test_semaphore (test.test_multiprocessing_fork.WithThreadsTestSemaphore) ... ok
test_timeout (test.test_multiprocessing_fork.WithThreadsTestSemaphore) ... skipped 'test not appropriate for threads'
test_import (test.test_multiprocessing_fork._TestImportStar) ... ok

----------------------------------------------------------------------

Ran 320 tests in 131.248s

OK (skipped=31)
test_gdb skipped -- Couldn't find gdb on the path
test_startfile skipped -- object <module 'os' from '/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/os.py'> has no attribute 'startfile'
test_msilib skipped -- No module named '_msi'
test_idle skipped -- No module named '_tkinter'

BNMetrics added a commit to BNMetrics/cpython that referenced this pull request Nov 2, 2018
…os methods (pythonGH-10101)

Some methods in the os module can accept path-like objects. This is documented in the general documentation but not in the function docstrings. To keep both in sync, the docstrings need to be updated to reflect that path-like objects are also accepted..
(cherry picked from commit b942707)

Co-authored-by: BNMetrics <luna@bnmetrics.com>
@pablogsal

pablogsal commented Nov 2, 2018

Copy link
Copy Markdown
Member

Ignore that, is an unrelated failure

pablogsal pushed a commit to pablogsal/cpython that referenced this pull request Nov 2, 2018
…os methods (pythonGH-10101)

Some methods in the os module can accept path-like objects. This is documented in the general documentation but not in the function docstrings. To keep both in sync, the docstrings need to be updated to reflect that path-like objects are also accepted..
(cherry picked from commit b942707)

Co-authored-by: BNMetrics <luna@bnmetrics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants