From 6983dc11b2a7039bc02e4900d950236e81252d69 Mon Sep 17 00:00:00 2001 From: Alex Hornby Date: Mon, 20 Nov 2023 07:20:07 -0800 Subject: [PATCH] fix eden build with python 3.12 Summary: X-link: https://github.com/facebookincubator/velox/pull/7653 fix eden build with python 3.12 python 3.12 removes many long deprecated unittest features including _TextTestResult (deprecated in Python 3.2) notices as fedora 39 ships with python 3.12 X-link: https://github.com/facebook/sapling/pull/778 Differential Revision: D51455615 fbshipit-source-id: f690f14b24b2645578113f769669179fba476657 --- build/fbcode_builder/CMake/fb_py_test_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/fbcode_builder/CMake/fb_py_test_main.py b/build/fbcode_builder/CMake/fb_py_test_main.py index 41626181b1..0ee1e8cc68 100644 --- a/build/fbcode_builder/CMake/fb_py_test_main.py +++ b/build/fbcode_builder/CMake/fb_py_test_main.py @@ -194,7 +194,7 @@ def fileno(self): return self._fileno -class BuckTestResult(unittest._TextTestResult): +class BuckTestResult(unittest.TextTestResult): """ Our own TestResult class that outputs data in a format that can be easily parsed by buck's test runner.