[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

FYI importlib leak was fixed in bpo-40050 by:

commit 83d46e0622d2efdf5f3bf8bf8904d0dcb55fc322
Author: Victor Stinner 
Date:   Tue Mar 24 18:03:34 2020 +0100

bpo-40050: Fix importlib._bootstrap_external (GH-19135)

Remove two unused imports: _thread and _weakref. Avoid creating a new
winreg builtin module if it's already available in sys.modules.

The winreg module is now stored as "winreg" rather than "_winreg".

--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-03-23 Thread Łukasz Langa

Łukasz Langa  added the comment:

> Reverting GH-18627 fixes the issue.

Sorry, this is false. I just checked out to the last commit to importlib before 
GH-18627 and it did not refleak. But when I actually reverted just GH-18627, 
the issue persisted.

By bisecting, I found out that it's GH-19084 which causes the refleak and it 
only just so happens that this refleak appears in importlib tests.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-03-23 Thread Łukasz Langa

Change by Łukasz Langa :


--
stage: resolved -> commit review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-03-23 Thread Łukasz Langa

Łukasz Langa  added the comment:

Re-opening as it causes refleaks all across the stable buildbots. I can 
reproduce on macOS Catalina as well. Run this to see for yourself:

- ./python.exe -E -Wd -m test -uall,-gui -l -L -R: test_importlib

Reverting GH-18627 fixes the issue.

--
keywords: +needs review -patch
nosy: +lukasz.langa
resolution: fixed -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-03-09 Thread STINNER Victor


Change by STINNER Victor :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-03-09 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset fc72ab6913f2b5337ae7fda711f2de846d38f479 by idomic in branch 
'master':
bpo-38691: importlib ignores PYTHONCASEOK if -E is used (GH-18627)
https://github.com/python/cpython/commit/fc72ab6913f2b5337ae7fda711f2de846d38f479


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-03-01 Thread Ido Michael


Ido Michael  added the comment:

@vstinner ready for review.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-23 Thread Ido Michael


Ido Michael  added the comment:

Added a new clean PR with the code changes, will let you know once the tests 
are fixed: GH-18627

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-23 Thread Ido Michael


Change by Ido Michael :


--
pull_requests: +17991
pull_request: https://github.com/python/cpython/pull/18627

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-22 Thread Ido Michael


Change by Ido Michael :


--
pull_requests: +17977
pull_request: https://github.com/python/cpython/pull/18612

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-19 Thread Andy Lester


Change by Andy Lester :


--
nosy: +petdance

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-19 Thread STINNER Victor


STINNER Victor  added the comment:

> Yes I saw those in the morning, thanks for patching it up. I will debug this 
> over the weekend and will update.

Ok, perfect. In the meanwhile, as announced, I reverted the change to be able 
to notify other regressions.

Once we get a fix, we can reapply the change with the fix.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-19 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 4dee92b0ad9f4e3ea2f5253340801bb92dc7 by Victor Stinner in 
branch 'master':
Revert "bpo-38691 Added a switch to ignore PYTHONCASEOK when -E or -I flags 
passed (#18314)" (GH-18553)
https://github.com/python/cpython/commit/4dee92b0ad9f4e3ea2f5253340801bb92dc7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-18 Thread Kyle Stanley


Kyle Stanley  added the comment:

>From what I can tell, the regression seems like it could be fixed by adding 
>"@unittest.skipIf(sys.flags.ignore_environment)" to the following tests in 
>python/cpython/Lib/test/test_importlib/source/test_case_sensitivity.py that 
>modify "PYTHONCASEOK":

CaseSensitivityTest.test_sensitive
CaseSensitivityTest.test_insensitive

Those tests seem ultimately pointless if environmental variables are being 
ignored (-E or -I), so I think in this case it's a misleading test failure, no?

--
nosy: +aeros

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-18 Thread Ido Michael


Ido Michael  added the comment:

Yes I saw those in the morning, thanks for patching it up. I will debug this 
over the weekend and will update.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-18 Thread STINNER Victor


STINNER Victor  added the comment:

> Tests fail on macOS: https://buildbot.python.org/all/#/builders/275/builds/249

Tests are run with "./python.exe  ./Tools/scripts/run_tests.py -j 1 -u all -W 
--slowest --fail-env-changed --timeout=900 -j2 --junit-xml test-results.xml" 
which runs tests with "./python.exe -E": ignore PYTHON* environment variables. 
Maybe the test should just take that in account.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-18 Thread STINNER Victor


STINNER Victor  added the comment:

I'm unable to debug the issue on macOS. I prepared PR 18553 to revert the 
change, just to give more time to fix the issue. It's to repair the CI, so we 
can notice other regressions.

--
keywords:  -newcomer friendly
title: [easy] importlib: PYTHONCASEOK should be ignored when using python3 -E 
-> importlib: PYTHONCASEOK should be ignored when using python3 -E

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2019-11-05 Thread Brett Cannon


Change by Brett Cannon :


--
nosy: +brett.cannon, eric.snow, ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2019-11-04 Thread STINNER Victor


New submission from STINNER Victor :

When using python3 -E or python3 -I, PYTHONCASEOK environment variable should 
be ignored by importlib. See an email sent in 2012:
https://mail.python.org/pipermail/python-dev/2012-December/123403.html

See importlib._bootstrap_external._relax_case attribute and its 
_make_relax_case() function.

--
components: Library (Lib)
messages: 355996
nosy: vstinner
priority: normal
severity: normal
status: open
title: importlib: PYTHONCASEOK should be ignored when using python3 -E
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com