fix(mdns): Make unit test executable with pytest

This commit is contained in:
David Cermak committed 2023-01-31 16:06:52 +01:00
1 parent 2cfffb056e
commit 12cfcb5aed
8 files changed
+88 -59

No files matched your search

+6 -3
View File
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import re
import select
@@ -8,8 +8,11 @@ import subprocess
import time
from threading import Event, Thread
import dpkt
import dpkt.dns
try:
import dpkt
import dpkt.dns
except ImportError:
pass
def get_dns_query_for_esp(esp_host):