Explorar o código

skip tests on windows

dinhlongviolin1 hai 1 mes
pai
achega
474ba654b3
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      tests/gui/notebook/test_notebook_simple_gui.py

+ 3 - 1
tests/gui/notebook/test_notebook_simple_gui.py

@@ -10,6 +10,7 @@
 # specific language governing permissions and limitations under the License.
 
 import contextlib
+import sys
 import time
 from urllib.error import HTTPError, URLError
 from urllib.request import urlopen
@@ -18,7 +19,7 @@ import pytest
 from testbook import testbook
 
 
-def wait_for_content(url, expected_text, timeout=30):
+def wait_for_content(url, expected_text, timeout=10):
     start = time.time()
     while time.time() - start < timeout:
         try:
@@ -33,6 +34,7 @@ def wait_for_content(url, expected_text, timeout=30):
 
 
 @pytest.mark.skip_if_not_server("flask")
+@pytest.mark.skipif(sys.platform.startswith("win"), reason="Test skipped on Windows")
 @pytest.mark.filterwarnings("ignore::RuntimeWarning")
 @pytest.mark.teste2e
 @testbook("tests/gui/notebook/simple_gui.ipynb")