From e8cb53e2bbe11ee154aa487ad36e5385d4f19353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Wed, 6 Mar 2024 12:28:32 +0100 Subject: [PATCH] fix unit test, blast CircleCI --- .circleci/config.yml | 38 ----------------------- CHANGELOG.md | 4 +-- tests/test_instrumentation/test_memory.py | 2 +- 3 files changed, 3 insertions(+), 41 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index f7150d79..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,38 +0,0 @@ -version: 2.1 -executors: - my-executor: - docker: - - image: smokserwis/build:python3 -orbs: - code-climate: travelaudience/code-climate@0.1.5 -commands: - setup_python: - description: Set up requirements - steps: - - run: - command: | - pip install -e .[dev,test,extras] - unit_test: - description: Run the unit tests - steps: - - run: pytest -n 8 -vv --cov=satella -jobs: - test: - executor: my-executor - steps: - - checkout - - code-climate/install - - setup_python - - unit_test - - run: - name: Collect results - command: - coverage xml - - code-climate/format_coverage: - input_type: coverage.py - coverage_file: coverage.xml - - code-climate/upload_coverage -workflows: - unit_test: - jobs: - - test diff --git a/CHANGELOG.md b/CHANGELOG.md index c262133a..0ad1d67a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,8 @@ Build system ============ -* Python 3.6 support dropped as it does not emply pyproject.toml, which is necessary +* Python 3.6 support dropped as it does not employ pyproject.toml, which is necessary to build this * fixed unit tests to run on Py3.12 * removed Docker unit tests -* an unit test had some problems running under PyPy +* a unit test had some problems running under PyPy diff --git a/tests/test_instrumentation/test_memory.py b/tests/test_instrumentation/test_memory.py index 56198130..71dbbf30 100644 --- a/tests/test_instrumentation/test_memory.py +++ b/tests/test_instrumentation/test_memory.py @@ -22,7 +22,7 @@ class OnDemandCondition(CustomCondition): class TestMemory(unittest.TestCase): - + @unittest.skipIf(sys.platform == 'PyPy', 'This will not work on PyPy') def test_get_size_dict(self): a = {'aba': 'aba'} -- GitLab