From 17dc4468f31b53bf605d826178eaa5c76f65d8c5 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 4 Apr 2009 17:36:05 +0000 Subject: [PATCH] Skip test_recursionlimit_fatalerror under Windows because it generates an annoying and misleading crash dialog. --- Lib/test/test_sys.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 427b721c73..b81c4fe119 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -177,6 +177,9 @@ class SysModuleTest(unittest.TestCase): def test_recursionlimit_fatalerror(self): # A fatal error occurs if a second recursion limit is hit when recovering # from a first one. + if os.name == "nt": + raise unittest.SkipTest( + "under Windows, test would generate a spurious crash dialog") code = textwrap.dedent(""" import sys -- 2.40.0