Skip to content

Commit 0c5cb16

Browse files
authored
use int type for allocation_timeout argument (#20)
1 parent beaff35 commit 0c5cb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_lockable/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def pytest_addoption(parser):
1313
group = parser.getgroup("lockable")
1414
group.addoption("--allocation_hostname", default=socket.gethostname(), help="Allocation host")
1515
group.addoption("--allocation_requirements", default=None, help="Resource requirements to be allocate")
16-
group.addoption("--allocation_timeout", default=10, help="Allocation timeout")
16+
group.addoption("--allocation_timeout", type=int, default=10, help="Allocation timeout")
1717
group.addoption("--allocation_resource_list_file", default='resources.json', help="Available resources list")
1818
group.addoption("--allocation_lock_folder", default=tempfile.gettempdir(), help="Allocation lockfiles folder")
1919

0 commit comments

Comments
 (0)