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
WithProcessesTestSharedMemory.test_shared_memory_basics fails on Windows #89215
Comments
While working on #28060 we've noticed that
For now it is ignored. Related issue: https://bugs.python.org/issue45042 |
I would like to work on this issue. |
It may be a bug in the constructor of SharedMemory. It ignores the size argument on Windows. |
The |
Ok, that's what I was able to find. Original BPO: https://bugs.python.org/issue35813
Related: https://bugs.python.org/issue38169
Moreover, even when So, this statement makes After reading all this my suggestion is:
I will start with |
The test fix looks good to me. That resolves this issue, yes? The other work is going on elsewhere? |
I think that adding extra tests and docs are two separate new tasks. I will Thanks a lot, everyone! пн, 6 сент. 2021 г. в 19:56, Steve Dower <report@bugs.python.org>:
|
Closing and moving to https://bugs.python.org/issue45125 |
This seem to have caused several errors that have manifested on the release of 3.10.0rc2: test test_multiprocessing_fork failed -- Traceback (most recent call last):
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/unittest/mock.py", line 1239, in _dot_lookup
return getattr(thing, comp)
AttributeError: module 'multiprocessing' has no attribute 'shared_memory'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/test/_test_multiprocessing.py", line 3818, in test_shared_memory_basics
with unittest.mock.patch(
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/unittest/mock.py", line 1422, in __enter__
self.target = self.getter()
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/unittest/mock.py", line 1609, in <lambda>
getter = lambda: _importer(target)
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/unittest/mock.py", line 1252, in _importer
thing = _dot_lookup(thing, comp, import_path)
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/unittest/mock.py", line 1242, in _dot_lookup
return getattr(thing, comp)
AttributeError: module 'multiprocessing' has no attribute 'shared_memory'
0:09:11 load avg: 0.71 [231/427/1] test_multiprocessing_forkserver -- test_multiprocessing_fork failed (1 error) in 1 min 11 sec
test test_multiprocessing_forkserver failed -- Traceback (most recent call last):
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/unittest/mock.py", line 1239, in _dot_lookup
return getattr(thing, comp)
AttributeError: module 'multiprocessing' has no attribute 'shared_memory'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/test/_test_multiprocessing.py", line 3818, in test_shared_memory_basics
with unittest.mock.patch(
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/unittest/mock.py", line 1422, in __enter__
self.target = self.getter()
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/unittest/mock.py", line 1609, in <lambda>
getter = lambda: _importer(target)
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/unittest/mock.py", line 1252, in _importer
thing = _dot_lookup(thing, comp, import_path)
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/unittest/mock.py", line 1242, in _dot_lookup
return getattr(thing, comp)
AttributeError: module 'multiprocessing' has no attribute 'shared_memory'
0:11:11 load avg: 0.93 [232/427/2] test_multiprocessing_main_handling -- test_multiprocessing_forkserver failed (1 error) in 2 min
0:11:18 load avg: 1.09 [233/427/2] test_multiprocessing_spawn
test test_multiprocessing_spawn failed -- Traceback (most recent call last):
File "/tmp/tmpu30qfjpr/installation/lib/python3.10/unittest/mock.py", line 1239, in _dot_lookup
return getattr(thing, comp)
AttributeError: module 'multiprocessing' has no attribute 'shared_memory' |
I'm planning to revert PR 28185 because this is blocking the release |
test_shared_memory_basics
test #28182test_shared_memory_basics
test (GH-28182) #28185Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: