summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b7d2695)
I get these warnings when running against Python 3.7.4:
tests/plugins/src.ctf.fs/query/test_query_trace_info.py:192: DeprecationWarning: Please use assertRegex instead.
Change-Id: I77cf2efc7aa74c4e4138e08c3ac1b9e618b718cd
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2215
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
trace = res[0]
streams = sorted(trace["stream-infos"], key=sort_predictably)
self.assertEqual(len(streams), 2)
trace = res[0]
streams = sorted(trace["stream-infos"], key=sort_predictably)
self.assertEqual(len(streams), 2)
- self.assertRegexpMatches(
str(streams[0]["port-name"]),
r"^7afe8fbe-79b8-4f6a-bbc7-d0c782e7ddaf \| 0 \| .*"
+ re.escape(str(os_stream_path / "test_stream_0"))
+ r"$",
)
str(streams[0]["port-name"]),
r"^7afe8fbe-79b8-4f6a-bbc7-d0c782e7ddaf \| 0 \| .*"
+ re.escape(str(os_stream_path / "test_stream_0"))
+ r"$",
)
- self.assertRegexpMatches(
str(streams[1]["port-name"]),
r"^7afe8fbe-79b8-4f6a-bbc7-d0c782e7ddaf \| 0 \| .*"
+ re.escape(str(os_stream_path / "test_stream_1"))
str(streams[1]["port-name"]),
r"^7afe8fbe-79b8-4f6a-bbc7-d0c782e7ddaf \| 0 \| .*"
+ re.escape(str(os_stream_path / "test_stream_1"))
trace = res[0]
streams = sorted(trace["stream-infos"], key=sort_predictably)
self.assertEqual(len(streams), 1)
trace = res[0]
streams = sorted(trace["stream-infos"], key=sort_predictably)
self.assertEqual(len(streams), 1)
- self.assertRegexpMatches(
str(streams[0]["port-name"]),
r"^2a6422d0-6cee-11e0-8c08-cb07d7b3a564 \| .*"
+ re.escape(str(os_stream_path))
str(streams[0]["port-name"]),
r"^2a6422d0-6cee-11e0-8c08-cb07d7b3a564 \| .*"
+ re.escape(str(os_stream_path))