From d5c94b9187f16f10b8d0856b0dfcc7241e6fe2f0 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Fri, 30 Aug 2024 01:58:39 +0300 Subject: [PATCH] Added Python 3.13 test target; trivial cleanup --- .github/workflows/tests.yaml | 2 +- pyswip/core.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 5bbf7ac..6f96e43 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -15,7 +15,7 @@ jobs: name: "Run tests with Python ${{ matrix.python-version }} on ${{ matrix.os }}" strategy: matrix: - python-version: [ '3.8', '3.12' ] + python-version: [ '3.8', '3.12', '3.13' ] os: [ "ubuntu-22.04", "ubuntu-24.04" ] fail-fast: false diff --git a/pyswip/core.py b/pyswip/core.py index 7355ac3..de02a9a 100644 --- a/pyswip/core.py +++ b/pyswip/core.py @@ -79,7 +79,6 @@ def _findSwiplFromExec(): swiHome = None try: # try to get library path from swipl executable. - # We may have pl or swipl as the executable cmd = Popen(["swipl", "--dump-runtime-variables"], stdout=PIPE) ret = cmd.communicate() @@ -1398,7 +1397,6 @@ def exit(self, code=0): def cleanupProlog(): # only do something if prolog has been initialised if PL_is_initialised(None, None): - # clean up the prolog system using the caught exit code # if exit code is None, the program exits normally and we can use 0 # instead.