Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / flask-restful / flask-3.0-compat.patch
blobc78105e7228276143d735bbaa77d3bb29bd066fc
1 diff --git a/tests/test_api.py b/tests/test_api.py
2 index 582ee5a..20db1f5 100644
3 --- a/tests/test_api.py
4 +++ b/tests/test_api.py
5 @@ -1,7 +1,7 @@
6 import unittest
7 import json
8 from flask import Flask, Blueprint, redirect, views, abort as flask_abort
9 -from flask.signals import got_request_exception, signals_available
10 +from flask.signals import got_request_exception
11 try:
12 from mock import Mock
13 except:
14 @@ -491,10 +491,6 @@ class APITestCase(unittest.TestCase):
15 self.assertEqual(api.default_mediatype, resp.headers['Content-Type'])
17 def test_handle_error_signal(self):
18 - if not signals_available:
19 - # This test requires the blinker lib to run.
20 - print("Can't test signals without signal support")
21 - return
22 app = Flask(__name__)
23 api = flask_restful.Api(app)