Skip to content

Commit

Permalink
test: fix deprecation warnings (#2260)
Browse files Browse the repository at this point in the history
This changes the test the code to avoid deprecation warnings that
occur. Mostly related to changes in python threading and pytest.
  • Loading branch information
aucampia committed Mar 11, 2023
1 parent 1df827a commit 09b9069
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test_serializers/test_prettyxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class SerializerTestBase(object):
repeats = 8

def setup(self):
def setup_method(self):
graph = ConjunctiveGraph()
graph.parse(data=self.testContent, format=self.testContentFormat)
self.sourceGraph = graph
Expand Down
2 changes: 1 addition & 1 deletion test/test_serializers/test_serializer_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class SerializerTestBase(object):
repeats = 8

def setup(self):
def setup_method(self):
graph = ConjunctiveGraph()
graph.parse(data=self.testContent, format=self.testContentFormat)
self.sourceGraph = graph
Expand Down
2 changes: 1 addition & 1 deletion test/test_store/test_store_sparqlstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def setup_mocked_endpoint(self):
# Start running mock server in a separate thread.
# Daemon threads automatically shut down when the main process exits.
mock_server_thread = Thread(target=mock_server.serve_forever)
mock_server_thread.setDaemon(True)
mock_server_thread.daemon = True
mock_server_thread.start()
print(
"Started mocked sparql endpoint on http://localhost:{port}/".format(
Expand Down

0 comments on commit 09b9069

Please sign in to comment.