File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -521,10 +521,13 @@ def requires_subprocess():
521
521
return unittest .skipUnless (has_subprocess_support , "requires subprocess support" )
522
522
523
523
# Does strftime() support glibc extension like '%4Y'?
524
- try :
525
- has_strftime_extensions = time .strftime ("%4Y" ) != "%4Y"
526
- except ValueError :
527
- has_strftime_extensions = False
524
+ has_strftime_extensions = False
525
+ if sys .platform != "win32" :
526
+ # bpo-47037: Windows debug builds crash with "Debug Assertion Failed"
527
+ try :
528
+ has_strftime_extensions = time .strftime ("%4Y" ) != "%4Y"
529
+ except ValueError :
530
+ pass
528
531
529
532
# Define the URL of a dedicated HTTP server for the network tests.
530
533
# The URL must use clear-text HTTP: no redirection to encrypted HTTPS.
Original file line number Diff line number Diff line change
1
+ Skip ``strftime("%4Y") `` feature test on Windows. It can cause an assertion
2
+ error in debug builds.
You can’t perform that action at this time.
0 commit comments