[issue38633] shutil.copystat fails with PermissionError in WSL
Sam Park added the comment: FWIW I just ran into this today on Ubuntu 18.04 container on GKE 1.21.5-gke.1302 and on a Ubuntu-with-Docker underlying node (if that's relevant). Applying the monkeypatch solves the issue as well. -- nosy: +sam.park ___ Python tracker <https://bugs.python.org/issue38633> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36834] mock.patch.object does not persist __module__ name for functions
New submission from Sam Park : The expectation is that the __module__ attribute for a patched function should persist after patching. Minimal test case is attached. Simply run pytest in a venv with the files. Output: def test_zxc(): with mock.patch.object(mymodule, 'asd', side_effect=mymodule.asd, autospec=True) as spy_asd: > assert spy_asd.__module__ == 'mymodule' E AssertionError: assert None == 'mymodule' E+ where None = .__module__ test_mymodule.py:8: AssertionError Originally reported at https://github.com/pytest-dev/pytest-mock/issues/146 before it was determined this was a unittest.mock issue. Happens on both Python 2.7 and 3.7. Probably not really tied to a specific Python version and more of mock library issue. My local venv: Python 3.7.2 pytest 4.4.1 -- components: Library (Lib), Tests files: minimal-test-case.zip messages: 341738 nosy: spark priority: normal severity: normal status: open title: mock.patch.object does not persist __module__ name for functions versions: Python 2.7, Python 3.7 Added file: https://bugs.python.org/file48309/minimal-test-case.zip ___ Python tracker <https://bugs.python.org/issue36834> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25228] Regression in http.cookies parsing with brackets and quotes
Change by Sam Park : -- nosy: +spark ___ Python tracker <https://bugs.python.org/issue25228> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25228] Regression in http.cookies parsing with brackets and quotes
Sam Park added the comment: I'm seeing a similar issue with curly brackets. from Cookie import BaseCookie cookie = BaseCookie('asd={"asd"}; my-real-cookie=stuff i care about; blah=blah') assert 'my-real-cookie' in cookie # False -- ___ Python tracker <https://bugs.python.org/issue25228> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com