Skip to content
Snippets Groups Projects

more Python 3.13 compatibility fixes

Merged Pierre-Yves David requested to merge topic/stable/fork-thread into branch/stable
Files
3
+ 13
0
@@ -13,6 +13,7 @@
import sys
import threading
import time
import warnings
from .i18n import _
from . import (
@@ -22,6 +23,18 @@
scmutil,
)
# XXX TODO: We should seriously look into this fork + thread issues, however
# this is wreaking havoc in the tests suites, so silencing for now.
warnings.filterwarnings(
'ignore',
message=(
r'This process \(pid=\d+\) is multi-threaded,'
r' use of fork\(\) may lead to deadlocks in the child.'
),
category=DeprecationWarning,
module='mercurial.worker',
)
def countcpus():
'''try to count the number of CPUs on the system'''
Loading