upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-flask-sqlalchemy / trunk / filter-warnings-test.patch
blobb8b2c1ae4d8e3185d029c12f3050686572510bba
1 --- flask-sqlalchemy-2.5.1/tests/test_basic_app.py 2021-03-18 20:01:49.000000000 +0100
2 +++ flask-sqlalchemy-2.5.1.new/tests/test_basic_app.py 2023-04-25 18:38:36.548747920 +0200
3 @@ -53,6 +53,9 @@
5 def test_persist_selectable(app, db, Todo, recwarn):
6 """ In SA 1.3, mapper.mapped_table should be replaced with mapper.persist_selectable """
8 + import warnings
9 + warnings.filterwarnings("ignore", category=DeprecationWarning)
10 with app.test_request_context():
11 todo = Todo('Test 1', 'test')
12 db.session.add(todo)