From 06941bac2e9a24d394fba7eeedd3aa61d3edb0a9 Mon Sep 17 00:00:00 2001 From: Xavier Olive Date: Mon, 18 Apr 2022 18:47:12 +0200 Subject: [PATCH] fix tests --- .github/workflows/run-tests.yml | 3 ++- setup.py | 2 +- tests/test_adsb.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index dfef0cb..8a93978 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -41,7 +41,8 @@ jobs: - name: Install with Cython run: | pip install -U cython - pip install --force-reinstall . + pip uninstall -y pymodes + pip install . - name: Run tests (with Cython) run: | diff --git a/setup.py b/setup.py index 0ee1d00..562b38d 100644 --- a/setup.py +++ b/setup.py @@ -57,5 +57,5 @@ try: setup(**dict(details, ext_modules=cythonize(extensions))) -except: +except ImportError: setup(**details) diff --git a/tests/test_adsb.py b/tests/test_adsb.py index 4a78f7e..a735023 100644 --- a/tests/test_adsb.py +++ b/tests/test_adsb.py @@ -83,7 +83,7 @@ def test_adsb_velocity(): def test_adsb_emergency(): assert not adsb.is_emergency("8DA2C1B6E112B600000000760759") assert adsb.emergency_state("8DA2C1B6E112B600000000760759") == 0 - assert adsb.emergency_squawk("8DA2C1B6E112B600000000760759") == "6615" + assert adsb.emergency_squawk("8DA2C1B6E112B600000000760759") == "6513" def test_adsb_target_state_status():