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.
This commit is contained in:
Allen 2020-08-17 09:38:55 -04:00 committed by GitHub
parent 1abeda80f7
commit 99c0ee3c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ class Condition(object):
def notify(self, n=1):
assert self._lock._semlock._is_mine(), 'lock is not owned'
assert not self._wait_semaphore.acquire(
False), ('notify: Should not have been able to acquire'
False), ('notify: Should not have been able to acquire '
+ '_wait_semaphore')
# to take account of timeouts since last notify*() we subtract