Skip to content

Commit

Permalink
Fix test on newer python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Dec 13, 2024
1 parent 323d53d commit 34c07a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/src/python/test_qgsserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,12 @@ def test_destructor_segfaults(self):

def test_multiple_servers(self):
"""Segfaults?"""
servers = {}
for i in range(10):
locals()[f"s{i}"] = QgsServer()
locals()[f"rq{i}"] = QgsBufferServerRequest("")
locals()[f"re{i}"] = QgsBufferServerResponse()
locals()[f"s{i}"].handleRequest(locals()[f"rq{i}"], locals()[f"re{i}"])
servers[f"s{i}"] = QgsServer()
servers[f"rq{i}"] = QgsBufferServerRequest("")
servers[f"re{i}"] = QgsBufferServerResponse()
servers[f"s{i}"].handleRequest(servers[f"rq{i}"], servers[f"re{i}"])

def test_requestHandler(self):
"""Test request handler"""
Expand Down

0 comments on commit 34c07a8

Please sign in to comment.