8000 Update test_locks.py · python/cpython@32cbefb · GitHub
[go: up one dir, main page]

Skip to content

Commit 32cbefb

Browse files
committed
Update test_locks.py
1 parent a8b7b1a commit 32cbefb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_asyncio/test_locks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
STR_RGX_REPR = (
1212
r'^<(?P<class>.*?) object at (?P<address>.*?)'
1313
r'\[(?P<extras>'
14-
r'(set|unset|locked|unlocked)(, value:\d)?(, waiters:\d+)?(, count:\d+/\d+)?(, state:^-?\d)?'
15-
r'(, count:\d+\/\d+)?(, (set|unset))?(, state:(-2|-1|0|1))?' # this line to repr barrier object
14+
r'(set|unset|locked|unlocked)(, value:\d)?(, waiters:\d+)?'
15+
r'(, count:\d+\/\d+)?(, (set|unset))?(, state:(-2|-1|0|1))?' # this line to repr barrier
1616
r')\]>\Z'
1717
)
1818
RGX_REPR = re.compile(STR_RGX_REPR)
@@ -71,7 +71,7 @@ def test_lock_doesnt_accept_loop_parameter(self):
7171
cls(loop=self.loop)
7272

7373
# Barrier object has a positional paramater
74-
# so check alone
74+
# so test alone
7575
cls = asyncio.Barrier
7676
with self.assertRaisesRegex(
7777
TypeError,

0 commit comments

Comments
 (0)
0