Skip to content

Commit

Permalink
Eliminate warnings in tox tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stdtom committed Jul 3, 2022
1 parent 0dac27c commit a2079fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ known_third_party = OpenSSL,cryptography,pandas,proxy,pytest,tabulate,tqdm,yaml
test = pytest

[tool:pytest]
collect_ignore = ['setup.py']
addopts = --ignore=setup.py
13 changes: 5 additions & 8 deletions tests/test_ssl_certinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,15 @@ def setup_module(module):
proxy_port = 8899

webdaemon = threading.Thread(
name="webdaemon_server", target=start_web_server, args=[webserver_port]
)
webdaemon.setDaemon(
True
name="webdaemon_server",
target=start_web_server,
args=[webserver_port],
daemon=True,
) # Set as a daemon so it will be killed once the main thread is dead.
webdaemon.start()

proxydaemon = threading.Thread(
name="proxydaemon_server", target=start_proxy, args=[proxy_port]
)
proxydaemon.setDaemon(
True
name="proxydaemon_server", target=start_proxy, args=[proxy_port], daemon=True
) # Set as a daemon so it will be killed once the main thread is dead.
proxydaemon.start()

Expand Down

0 comments on commit a2079fa

Please sign in to comment.