Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX
python-aiohttp_cors
278.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 278.patch of Package python-aiohttp_cors
From e64b95848f3253157d831f4934841fceeaf9b2e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz> Date: Thu, 14 Nov 2019 12:54:47 +0100 Subject: [PATCH] Test instance type by isinstance, not issubclass Fixes https://github.com/aio-libs/aiohttp-cors/issues/277 --- tests/unit/test_cors_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_cors_config.py b/tests/unit/test_cors_config.py index 817410e..d494e20 100644 --- a/tests/unit/test_cors_config.py +++ b/tests/unit/test_cors_config.py @@ -103,7 +103,7 @@ def test_static_resource(app, cors): "/file", "/", name="dynamic_named_route") assert len(app.router.keys()) == 1 for resource in list(app.router.resources()): - if issubclass(resource, web.StaticResource): + if isinstance(resource, web.StaticResource): cors.add(resource) assert len(app.router.keys()) == 1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor