File: 0001-Fix-unit-tests-on-invalid-data-after-connection-clos.patch

package info (click to toggle)
python-httptools 0.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 248 kB
  • sloc: python: 560; makefile: 23
file content (21 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
20
21
From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Sat, 20 Oct 2018 22:07:12 +0200
Subject: Fix unit tests on invalid data after connection closed.

---
 tests/test_parser.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_parser.py b/tests/test_parser.py
index 94a5839..967608a 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -103,7 +103,7 @@ class TestResponseParser(unittest.TestCase):
 
         with self.assertRaisesRegex(
                 httptools.HttpParserError,
-                'data received after completed connection'):
+                'invalid constant string'):
             p.feed_data(b'12123123')
 
     def test_parser_response_2(self):