]> jfr.im git - yt-dlp.git/blobdiff - devscripts/run_tests.bat
[cleanup] Misc (#8510)
[yt-dlp.git] / devscripts / run_tests.bat
index f12ae1c1b24a7653bc944170f733c9d0441b5a17..190d23918ce9ef4e212258f4c4f6842903b2b2bb 100644 (file)
@@ -3,14 +3,15 @@
 cd /d %~dp0..
 
 if ["%~1"]==[""] (
-    set "test_set="
+    set "test_set="test""
 ) else if ["%~1"]==["core"] (
-    set "test_set=-k "not download""
+    set "test_set="-m not download""
 ) else if ["%~1"]==["download"] (
-    set "test_set=-k download"
+    set "test_set="-m "download""
 ) else (
     echo.Invalid test type "%~1". Use "core" ^| "download"
     exit /b 1
 )
 
+set PYTHONWARNINGS=error
 pytest %test_set%