forked from osmocom/wireshark
test: fix "DeprecationWarning: invalid escape sequence \("
Use the 'r' prefix to prevent backslashes from being interpreted. Change-Id: I736d70c72a862086501a59b3c1acac0d77e2d6d3 Reviewed-on: https://code.wireshark.org/review/30840 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
97112cd4f7
commit
af6aa3f76a
|
@ -454,19 +454,19 @@ def check_dumpcap_pcapng_sections(cmd_dumpcap, cmd_tshark, capture_file):
|
|||
))
|
||||
# XXX Are there any other sanity checks we should run?
|
||||
if idb_compare_eq:
|
||||
self.assertEqual(self.countOutput('Block: Interface Description Block',
|
||||
self.assertEqual(self.countOutput(r'Block: Interface Description Block',
|
||||
proc=tshark_proc), check_val['idb_count'])
|
||||
else:
|
||||
self.assertGreaterEqual(self.countOutput('Block: Interface Description Block',
|
||||
self.assertGreaterEqual(self.countOutput(r'Block: Interface Description Block',
|
||||
proc=tshark_proc), check_val['idb_count'])
|
||||
idb_compare_eq = True
|
||||
self.assertEqual(self.countOutput('Option: User Application = Passthrough test #1',
|
||||
self.assertEqual(self.countOutput(r'Option: User Application = Passthrough test #1',
|
||||
proc=tshark_proc), check_val['ua_pt1_count'])
|
||||
self.assertEqual(self.countOutput('Option: User Application = Passthrough test #2',
|
||||
self.assertEqual(self.countOutput(r'Option: User Application = Passthrough test #2',
|
||||
proc=tshark_proc), check_val['ua_pt2_count'])
|
||||
self.assertEqual(self.countOutput('Option: User Application = Passthrough test #3',
|
||||
self.assertEqual(self.countOutput(r'Option: User Application = Passthrough test #3',
|
||||
proc=tshark_proc), check_val['ua_pt3_count'])
|
||||
self.assertEqual(self.countOutput('Option: User Application = Dumpcap \(Wireshark\)',
|
||||
self.assertEqual(self.countOutput(r'Option: User Application = Dumpcap \(Wireshark\)',
|
||||
proc=tshark_proc), check_val['ua_dc_count'])
|
||||
return check_dumpcap_pcapng_sections_real
|
||||
|
||||
|
|
Loading…
Reference in New Issue