Skip to content

Commit 2bcd0fe

Browse files
Fix typo in message from assert statement (GH-21283)
The error message was missing space between the action "acquire" and "_wait_semaphore" which is an attribute for instances of Condition. (cherry picked from commit 99c0ee3) Co-authored-by: Allen <64019758+aboddie@users.noreply.github.com>
1 parent 1baa8b1 commit 2bcd0fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/multiprocessing/synchronize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def wait(self, timeout=None):
270270
def notify(self, n=1):
271271
assert self._lock._semlock._is_mine(), 'lock is not owned'
272272
assert not self._wait_semaphore.acquire(
273-
False), ('notify: Should not have been able to acquire'
273+
False), ('notify: Should not have been able to acquire '
274274
+ '_wait_semaphore')
275275

276276
# to take account of timeouts since last notify*() we subtract

0 commit comments

Comments
 (0)