From 28175bbee2c111cf41b80c97bbadd7dbabaa8990 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Tue, 22 Jun 2021 16:20:14 +0200 Subject: pathlib: Patch pathlib to work around some bugs (fixes #7295) --- run_unittests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'run_unittests.py') diff --git a/run_unittests.py b/run_unittests.py index f1ff2b448..9da20e69a 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -13,6 +13,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Work around some pathlib bugs... +from mesonbuild import _pathlib +import sys +sys.modules['pathlib'] = _pathlib + import time import stat import subprocess @@ -22,7 +27,6 @@ import tempfile import textwrap import os import shutil -import sys import unittest import platform import pickle -- cgit v1.2.3