File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -669,10 +669,7 @@ def check_matches(self, place):
669
669
670
670
async def acquire (self ):
671
671
"""Acquire a place, marking it unavailable for other clients"""
672
- place = self .get_place ()
673
- if place .acquired :
674
- raise UserError (f"place { place .name } is already acquired by { place .acquired } " )
675
-
672
+ place = self .get_idle_place ()
676
673
if not self .args .allow_unmatched :
677
674
self .check_matches (place )
678
675
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ def test_place_add_no_name(coordinator):
262
262
263
263
def test_place_del_no_name (coordinator ):
264
264
with pexpect .spawn ('python -m labgrid.remote.client delete' ) as spawn :
265
- spawn .expect ("name was not a string " )
265
+ spawn .expect ("place pattern not specified " )
266
266
spawn .expect (pexpect .EOF )
267
267
spawn .close ()
268
268
assert spawn .exitstatus != 0 , spawn .before .strip ()
You can’t perform that action at this time.
0 commit comments