Skip to content

Commit

Permalink
Test instance type by isinstance, not issubclass
Browse files Browse the repository at this point in the history
  • Loading branch information
hroncok committed Nov 14, 2019
1 parent 73510a3 commit e64b958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_cors_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e64b958

Please sign in to comment.