Skip to content

bpo-34541: pathlib.Path.iterdir throw an exception when path is not valid #8996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 877 commits into from

Conversation

prudvinit
Copy link

@prudvinit prudvinit commented Aug 29, 2018

miss-islington and others added 30 commits June 18, 2018 14:37
with debuglevel=1 only the header keys got printed. With
this change the header values get printed as well and the single
header entries get '\n' as a separator.
(cherry picked from commit 936f03e)

Co-authored-by: Marco Strigl <[email protected]>
Fix test_dbm_gnu.test_reorganize() on macOS with gdbm 1.15: add a
larger value to make sure that the file size changes.
Part 3 of 3, continuing PR pythonGH-7689. This covers 14 idlelib modules and their tests,
rpc to zoomheight except for run (already done) and tooltip (being done separately).
(cherry picked from commit 4d92158)

Co-authored-by: Terry Jan Reedy <[email protected]>
Improve consistency and appearance. Module idlelib.calltips is now calltip.
Class idlelib.calltip_w.CallTip is now Calltip.
(cherry picked from commit 06e2029)

Co-authored-by: Terry Jan Reedy <[email protected]>
Fix-up class name duplication in PR pythonGH-7807. Combined effect is that
module calltips and its class CallTips are now calltip and Calltip.
In module calltip_w class CallTip is now CalltipWindow.
(cherry picked from commit 9af1836)

Co-authored-by: Terry Jan Reedy <[email protected]>
…thonGH-7799)

Only make sure that the result is in unittest.signals._results, don't
check the full content of unittest.signals._results.

support._run_suite() uses TextTestRunner in verbose mode, but
TextTestRunner.run() calls registerResult(result) which made the test
fail with "odd object in result set".

Call also removeResult() to restore unittest.signals._results to
avoid test side effect.
(cherry picked from commit fd8fbce)

Co-authored-by: Victor Stinner <[email protected]>
…ythonGH-7811)

(cherry picked from commit 9bb9223)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <[email protected]>
)

The revised file compiles, runs, and tests OK. idle_test/README.txt
explains how to use it to create new IDLE test files.
(cherry picked from commit 87a9273)

Co-authored-by: Terry Jan Reedy <[email protected]>
Match Window on the main menu and remove last plural module name.
Change imports, test, and attribute references to match new name.
(cherry picked from commit a361e89)

Co-authored-by: Terry Jan Reedy <[email protected]>
…ythonGH-7836)

Every other menudef key is the lowercase version of the
corresponding main menu entry (in this case, 'Window').
(cherry picked from commit 33c7420)

Co-authored-by: Terry Jan Reedy <[email protected]>
…H-7841)

(cherry picked from commit 940ae60)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <[email protected]>
Increases coverage by 44%.
(cherry picked from commit bcd3a1a)

Co-authored-by: Terry Jan Reedy <[email protected]>
Add -g to LDFLAGS when compiling with LTO to get debug symbols.
(cherry picked from commit 06fe77a)

Co-authored-by: Victor Stinner <[email protected]>
Calling Py_Initialize() twice does nothing, instead of failing with a
fatal error: restore the Python 3.6 behaviour.
(cherry picked from commit 209abf7)

Co-authored-by: Victor Stinner <[email protected]>
(cherry picked from commit c45cb47)

Co-authored-by: Andrés Delfino <[email protected]>
…ythonGH-7744)

The statement is true for Windows (and macOS) also.
(cherry picked from commit c9d43c7)

Co-authored-by: Andrés Delfino <[email protected]>
bz2, lzma: When Decompressor.__init__() is called twice, free the old
lock to not leak memory.
(cherry picked from commit 9b7cf75)

Co-authored-by: Victor Stinner <[email protected]>
(cherry picked from commit 38cf49b)

Co-authored-by: Andrés Delfino <[email protected]>
In configdialog, the custom tabbedpages widget was replaced
by ttk.notebook several months ago.
(cherry picked from commit 5ae70f6)

Co-authored-by: Terry Jan Reedy <[email protected]>
…-7884)

Directly executed pyc files were being kept open longer than necessary.
(cherry picked from commit ea73775)

Co-authored-by: Zackery Spytz <[email protected]>
…thonGH-7892)

This avoids a failure in at least one case when running only a single
test method rather than all tests in the module.

The issue came up when testing the following on Windows 10 Pro 64-bit:
HighPageTest.test_highlight_target_text_mouse
(cherry picked from commit 2af9f5d)

Co-authored-by: Tal Einat <[email protected]>
…GH-7858) (pythonGH-7900)

Adds references to info about file modes, `time.strftime()`, string formatting
syntaxes, and logging levels.

(cherry picked from commit a8ddf85)

Co-authored-by: Andrés Delfino <[email protected]>
…honGH-7920)

These should have been included in PR 7836.
(cherry picked from commit 4239773)

Co-authored-by: Mark Roseman <[email protected]>
(cherry picked from commit 866c168)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <[email protected]>
miss-islington and others added 12 commits August 17, 2018 06:02
The http_response() and https_response() methods of the HTTPErrorProcessor
class have two required parameters, 'request' and 'response'.
(cherry picked from commit c53aaec)

Co-authored-by: Sebastian Rittau <[email protected]>
… about locales (pythonGH-8808) (pythonGH-8809)

(cherry picked from commit 93b5655)

Co-authored-by: Andrés Delfino <[email protected]>
If a globals dictionary without a '__builtins__' key is passed to
eval(), a '__builtins__' key will be inserted to the dictionary:

    >>> eval("print('__builtins__' in globals())", {})
    True

(As a result of this behavior, we can use the builtins
print() and globals() even if we passed a dictionary without a
'__builtins__' key to eval().)
(cherry picked from commit 225b055)

Co-authored-by: Berker Peksag <[email protected]>
…-8823)

Reported by Svace static analyzer.
(cherry picked from commit 74a307d)

Co-authored-by: Alexey Izbyshev <[email protected]>
… below 1.8.5. (pythonGH-8744)

(cherry picked from commit 4c85557)

Co-authored-by: Xiang Zhang <[email protected]>
…subclasses__ (pythonGH-8835)

The missing NULL check was reported by Svace static analyzer.
(cherry picked from commit cdbf50c)

Co-authored-by: Alexey Izbyshev <[email protected]>
…-8851)

Reported by Svace static analyzer.
(cherry picked from commit f8c06b0)

Co-authored-by: Alexey Izbyshev <[email protected]>
…ame(). (pythonGH-8852)

Reported by Svace static analyzer.
(cherry picked from commit 28853a2)

Co-authored-by: Alexey Izbyshev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.