Skip to content

Commit 032fa8f

Browse files
committed
Fix deprecation warnings
Pytest changed the way how type argument should be provided. Updated to incorporate upstream changes.
1 parent 8453474 commit 032fa8f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pytest_cloud/plugin.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def pytest_addoption(parser):
8181
group.addoption(
8282
"--cloud-python",
8383
help="python executable name to be used on the remote test nodes."
84-
"Default is the executable used on the master.", type='string', action="store",
84+
"Default is the executable used on the master.", type=str, action="store",
8585
dest='cloud_python', metavar="NAME", default='python{0}.{1}'.format(*sys.version_info))
8686
group._addoption(
8787
'--cloud-chdir',
@@ -95,31 +95,31 @@ def pytest_addoption(parser):
9595
help="relative path on remote node to run tests in. Default is pytest_<username>_<current_folder_name>")
9696
group.addoption(
9797
"--cloud-nodes",
98-
help="space-separated test node list to use for distributed testing", type='string', action=NodesAction,
98+
help="space-separated test node list to use for distributed testing", type=str, action=NodesAction,
9999
dest='cloud_nodes', metavar="'USER@HOST", default=[])
100100
group.addoption(
101101
"--cloud-node",
102-
help="test node to use for distributed testing", type='string', action="append",
102+
help="test node to use for distributed testing", type=str, action="append",
103103
dest='cloud_nodes', metavar="USER@HOST", default=[])
104104
group.addoption(
105105
"--cloud-virtualenv-path",
106-
help="relative path to the virtualenv to be used on the remote test nodes.", type='string', action="store",
106+
help="relative path to the virtualenv to be used on the remote test nodes.", type=str, action="store",
107107
dest='cloud_virtualenv_path', metavar="PATH", default=get_virtualenv_path())
108108
group.addoption(
109109
"--cloud-mem-per-process",
110-
help="amount of memory roughly needed for test process, in megabytes", type='int', action="store",
110+
help="amount of memory roughly needed for test process, in megabytes", type=int, action="store",
111111
dest='cloud_mem_per_process', metavar="NUMBER", default=None)
112112
group.addoption(
113113
"--cloud-max-processes",
114-
help="maximum number of processes per test node", type='int', action="store",
114+
help="maximum number of processes per test node", type=int, action="store",
115115
dest='cloud_max_processes', metavar="NUMBER", default=None)
116116
group.addoption(
117117
"--cloud-rsync-max-processes",
118-
help="maximum number of rsync processes", type='int', action="store",
118+
help="maximum number of rsync processes", type=int, action="store",
119119
dest='cloud_rsync_max_processes', metavar="NUMBER", default=None)
120120
group.addoption(
121121
"--cloud-rsync-bandwidth-limit",
122-
help="maximum number of processes per test node", type='int', action="store",
122+
help="maximum number of processes per test node", type=int, action="store",
123123
dest='cloud_rsync_bandwidth_limit', metavar="NUMBER", default=10000)
124124
parser.addoption(
125125
"--cloud-rsync-cipher",

0 commit comments

Comments
 (0)