From ecb6c5ba6400375b6b2b6b402ab935ad947a20f2 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Sun, 28 Apr 2024 20:48:14 +0200 Subject: [PATCH] TEST Signed-off-by: Christian Marangi --- .github/workflows/build.yml | 3 --- ndiff/ndifftest.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 535737258a..41e4b593ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,9 +45,6 @@ jobs: pip install build setuptools - # Needed for make check - pip install imp - - name: Checkout uses: actions/checkout@v4 diff --git a/ndiff/ndifftest.py b/ndiff/ndifftest.py index 27fc5256e8..140c903ac8 100755 --- a/ndiff/ndifftest.py +++ b/ndiff/ndifftest.py @@ -12,10 +12,10 @@ import xml.dom.minidom -import imp +from importlib.machinery import SourceFileLoader dont_write_bytecode = sys.dont_write_bytecode sys.dont_write_bytecode = True -ndiff = imp.load_source("ndiff", "ndiff.py") +ndiff = SourceFileLoader("ndiff.py", "ndiff") for x in dir(ndiff): if not x.startswith("_"): globals()[x] = getattr(ndiff, x)