Skip to content

Commit

Permalink
CI: clean up ignored tests
Browse files Browse the repository at this point in the history
Remove tests which are passing now, or no longer exist, and
move tests which only fail with msvcrt into a separate file.
  • Loading branch information
naveen521kk committed Jul 11, 2024
1 parent 7d3cf00 commit b8cfef3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,24 @@ jobs:
shell: msys2 {0}
run: |
IGNOREFILE="$(pwd)/mingw_ignorefile.txt"
IGNOREFILE_EXTRA="$IGNOREFILE"
if [[ "${{ matrix.msystem }}" == "MINGW32" ]] || [[ "${{ matrix.msystem }}" == "MINGW64" ]]; then
IGNOREFILE_EXTRA="$(pwd)/mingw_ignorefile_msvcrt.txt"
fi
cd _build
MSYSTEM= ./python.exe -m test -j8 --ignorefile "$IGNOREFILE" -W
MSYSTEM= ./python.exe -m test -j8 --ignorefile "$IGNOREFILE" --ignorefile "$IGNOREFILE_EXTRA" -W
- name: Run broken tests
continue-on-error: true
shell: msys2 {0}
run: |
IGNOREFILE="$(pwd)/mingw_ignorefile.txt"
IGNOREFILE_EXTRA="$IGNOREFILE"
if [[ "${{ matrix.msystem }}" == "MINGW32" ]] || [[ "${{ matrix.msystem }}" == "MINGW64" ]]; then
IGNOREFILE_EXTRA="$(pwd)/mingw_ignorefile_msvcrt.txt"
fi
cd _build
MSYSTEM= ./python.exe -m test -j8 --matchfile "$IGNOREFILE" -W
MSYSTEM= ./python.exe -m test -j8 --matchfile "$IGNOREFILE" --matchfile "$IGNOREFILE_EXTRA" -W
- name: Install
shell: msys2 {0}
Expand Down
20 changes: 0 additions & 20 deletions mingw_ignorefile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@ test.test_ctypes.test_loading.LoaderTest.test_load_dll_with_flags
distutils.tests.test_bdist_dumb.BuildDumbTestCase.test_simple_built
distutils.tests.test_cygwinccompiler.CygwinCCompilerTestCase.test_get_versions
distutils.tests.test_util.UtilTestCase.test_change_root
test.datetimetester.TestLocalTimeDisambiguation_Fast.*
test.datetimetester.TestLocalTimeDisambiguation_Pure.*
test.test_cmath.CMathTests.test_specific_values
test.test_cmd_line_script.CmdLineTest.test_consistent_sys_path_for_direct_execution
test.test_compileall.CommandLineTestsNoSourceEpoch.*
test.test_compileall.CommandLineTestsWithSourceEpoch.*
test.test_compileall.CompileallTestsWithoutSourceEpoch.*
test.test_compileall.CompileallTestsWithSourceEpoch.*
test.test_import.ImportTests.test_dll_dependency_import
test.test_math.MathTests.*
test.test_ntpath.NtCommonTest.test_import
test.test_os.StatAttributeTests.test_stat_block_device
test.test_os.TestScandir.test_attributes
Expand All @@ -23,21 +18,6 @@ test.test_site._pthFileTests.*
test.test_site.HelperFunctionsTests.*
test.test_site.StartupImportTests.*
test.test_ssl.*
test.test_strptime.CalculationTests.*
test.test_strptime.StrptimeTests.test_weekday
test.test_strptime.TimeRETests.test_compile
test.test_tools.test_i18n.Test_pygettext.test_POT_Creation_Date
test.test_venv.BasicTest.*
test.test_venv.EnsurePipTest.*
test.test_sysconfig.TestSysConfig.test_user_similar
test.test_tcl.TclTest.testLoadWithUNC
test.test_wmi
# flaky
test.test__xxsubinterpreters.*
test.test_asyncio.test_subprocess.SubprocessProactorTests.test_stdin_broken_pipe
test.test_asynchat.TestAsynchat.test_line_terminator2
test.test_asyncgen.AsyncGenAsyncioTest.test_async_gen_asyncio_gc_aclose_09
test.test_concurrent_futures.ThreadPoolShutdownTest.test_interpreter_shutdown
test.test_asynchat.TestNotConnected.test_disallow_negative_terminator
test.test_logging.SysLogHandlerTest.*
test.test_logging.IPv6SysLogHandlerTest.*
8 changes: 8 additions & 0 deletions mingw_ignorefile_msvcrt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test.datetimetester.TestLocalTimeDisambiguation_Fast.*
test.datetimetester.TestLocalTimeDisambiguation_Pure.*
test.test_cmath.CMathTests.test_specific_values
test.test_math.MathTests.*
test.test_strptime.CalculationTests.*
test.test_strptime.StrptimeTests.test_weekday
test.test_strptime.TimeRETests.test_compile
test.test_tools.test_i18n.Test_pygettext.test_POT_Creation_Date

0 comments on commit b8cfef3

Please sign in to comment.