summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatan Breizman <mbreizma@redhat.com>2024-05-22 11:56:01 +0200
committerMatan Breizman <mbreizma@redhat.com>2024-05-22 11:56:56 +0200
commitd37f09435611517d3a80dc821df670a6decea4ae (patch)
treec33b83a30a0dcbebdcc5bb0d2d5f549551269324
parentMerge pull request #57383 from athanatos/sjust/wip-65867-user-version (diff)
downloadceph-d37f09435611517d3a80dc821df670a6decea4ae.tar.xz
ceph-d37f09435611517d3a80dc821df670a6decea4ae.zip
test/pybind/test_rados.py: fix warnings
``` 2024-05-21T14:06:10.464 INFO:tasks.workunit.client.0.smithi031.stdout:../../../clone.client.0/src/test/pybind/assertions.py:2: AssertionError 2024-05-21T14:06:10.464 INFO:tasks.workunit.client.0.smithi031.stdout:=============================== warnings summary =============================== 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout:../../../clone.client.0/src/test/pybind/test_rados.py:210 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout: /home/ubuntu/cephtest/clone.client.0/src/test/pybind/test_rados.py:210: DeprecationWarning: invalid escape sequence \- 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout: assert re.match('[0-9a-f\-]{36}', fsid, re.I) 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout: 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout:../../../clone.client.0/src/test/pybind/test_rados.py:959 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout: /home/ubuntu/cephtest/clone.client.0/src/test/pybind/test_rados.py:959: PytestUnknownMarkWarning: Unknown pytest.mark.wait - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout: @pytest.mark.wait 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout: 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout:../../../clone.client.0/src/test/pybind/test_rados.py:995 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout: /home/ubuntu/cephtest/clone.client.0/src/test/pybind/test_rados.py:995: PytestUnknownMarkWarning: Unknown pytest.mark.wait - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout: @pytest.mark.wait 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout: 2024-05-21T14:06:10.465 INFO:tasks.workunit.client.0.smithi031.stdout:../../../clone.client.0/src/test/pybind/test_rados.py:1023 2024-05-21T14:06:10.466 INFO:tasks.workunit.client.0.smithi031.stdout: /home/ubuntu/cephtest/clone.client.0/src/test/pybind/test_rados.py:1023: PytestUnknownMarkWarning: Unknown pytest.mark.wait - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html 2024-05-21T14:06:10.466 INFO:tasks.workunit.client.0.smithi031.stdout: @pytest.mark.wait 2024-05-21T14:06:10.466 INFO:tasks.workunit.client.0.smithi031.stdout: ``` Signed-off-by: Matan Breizman <mbreizma@redhat.com>
-rw-r--r--src/test/pybind/pytest.ini1
-rw-r--r--src/test/pybind/test_rados.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/test/pybind/pytest.ini b/src/test/pybind/pytest.ini
index dccf2a346dc..97569e88299 100644
--- a/src/test/pybind/pytest.ini
+++ b/src/test/pybind/pytest.ini
@@ -7,3 +7,4 @@ markers =
stats
tier
watch
+ wait
diff --git a/src/test/pybind/test_rados.py b/src/test/pybind/test_rados.py
index 7d12ca23f4d..feddab20c02 100644
--- a/src/test/pybind/test_rados.py
+++ b/src/test/pybind/test_rados.py
@@ -207,7 +207,7 @@ class TestRados(object):
def test_get_fsid(self):
fsid = self.rados.get_fsid()
- assert re.match('[0-9a-f\-]{36}', fsid, re.I)
+ assert re.match(r'[0-9a-f\-]{36}', fsid, re.I)
def test_blocklist_add(self):
self.rados.blocklist_add("1.2.3.4/123", 1)