File: fix-assertEquals.patch

package info (click to toggle)
python-pure-pcapy3 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 112 kB
  • sloc: python: 434; makefile: 8; sh: 4
file content (19 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix assertEquals
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2024-09-07

--- python-pure-pcapy3-1.0.1.orig/test/__init__.py
+++ python-pure-pcapy3-1.0.1/test/__init__.py
@@ -22,9 +22,9 @@ class OpenerTest(unittest.TestCase):
 
 class FixupTest(unittest.TestCase):
 	def test_fixup_short(self):
-		self.assertEquals(0x3412, pure_pcapy.fixup_swapped_short(0x1234))
+		self.assertEqual(0x3412, pure_pcapy.fixup_swapped_short(0x1234))
 	def test_fixup_long(self):
-		self.assertEquals(0x78563412, pure_pcapy.fixup_swapped_long(0x12345678))
+		self.assertEqual(0x78563412, pure_pcapy.fixup_swapped_long(0x12345678))
 
 def create_pcap_file(parts):
 	input = tempfile.TemporaryFile()