From cba227b605e951c7dff35b590b97235d1d6adfa1 Mon Sep 17 00:00:00 2001 From: dcsena Date: Sun, 19 Mar 2023 17:54:43 -0400 Subject: [PATCH] filtering python version --- .github/workflows/ci.yml | 1 + test/__init__.py | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6950871af..6335b67f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,7 @@ jobs: if: ${{ matrix.python-impl != 'jython' }} run: pip install nose - name: Install yourbase + if: ${{ matrix.python-version > 3.5 }} run: pip install yourbase - name: Install nose (Jython) if: ${{ matrix.python-impl == 'jython' }} diff --git a/test/__init__.py b/test/__init__.py index 716993420..a080fcf8b 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -1,4 +1,8 @@ -import unittest -import yourbase +import sys -yourbase.attatch(unittest) \ No newline at end of file + +if sys.version[0:3] > '3.5': + import unittest + import yourbase + + yourbase.attatch(unittest) \ No newline at end of file