Skip to content

Commit 6d3b982

Browse files
committed
TST: TestAmqp.test_acknowledge: skip also on 3.11
this specific tests consistently fails when running on GitHub on Python 3.11 but not everywhere else, so ignore it
1 parent c306aae commit 6d3b982

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
- Install build dependencies for `pymssql` on Python 3.8 as there are no wheels available for this Python version (PR#2542 by Sebastian Wagner).
4444
- Install `psql` explicitly for workflow support on other platforms such as act (PR#2542 by Sebastian Wagner).
4545
- Create intelmq user & group if running privileged to allow dropping privileges (PR#2542 by Sebastian Wagner).
46+
- `intelmq.tests.lib.test_pipeline.TestAmqp.test_acknowledge`: Also skip on Python 3.11 besides on 3.8 when running on CI (PR#2542 by Sebastian Wagner).
4647

4748
### Tools
4849

intelmq/tests/lib/test_pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ def test_reject(self):
266266
self.pipe.reject_message()
267267
self.assertEqual(SAMPLES['normal'][1], self.pipe.receive())
268268

269-
@unittest.skipIf(os.getenv('CI') == 'true' and sys.version_info[:2] == (3, 8),
270-
'Fails on CI with Python 3.8')
269+
@unittest.skipIf(os.getenv('CI') == 'true' and sys.version_info[:2] in ((3, 8), (3, 11)),
270+
'Fails on CI with Python 3.8 and 3.11')
271271
def test_acknowledge(self):
272272
self.pipe.send(SAMPLES['normal'][0])
273273
self.pipe.receive()

0 commit comments

Comments
 (0)