[med-svn] [Git][med-team/python-cogent][master] 4 commits: Fix patch to skip some tests which was lacking `import multiprocessing`
Andreas Tille (@tille)
gitlab at salsa.debian.org
Fri Jan 26 15:32:05 GMT 2024
Andreas Tille pushed to branch master at Debian Med / python-cogent
Commits:
78516e78 by Andreas Tille at 2024-01-26T15:08:40+01:00
Fix patch to skip some tests which was lacking `import multiprocessing`
- - - - -
639ebe70 by Andreas Tille at 2024-01-26T15:33:39+01:00
Close bug
- - - - -
3b97858e by Andreas Tille at 2024-01-26T15:35:53+01:00
Skip another test that is accessing network
- - - - -
b6252843 by Andreas Tille at 2024-01-26T15:51:24+01:00
Upload to unstable
- - - - -
3 changed files:
- debian/changelog
- debian/patches/ignore_tests_accessing_network.patch
- debian/patches/skip-parallel-tests-on-single-cpu-systems.patch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,14 +1,15 @@
-python-cogent (2023.12.15a1+dfsg-1) UNRELEASED; urgency=medium
+python-cogent (2023.12.15a1+dfsg-1) unstable; urgency=medium
* New upstream version
+ Closes: #1058370
* Build-Depends: s/dh-python/dh-sequence-python3/ (routine-update)
* Build-Depends: python3-sphinxcontrib.bibtex, python3-sphinx-design,
python3-pydata-sphinx-theme
* Add build support for loongarch64
Closes: #1059557
- TODO: Wait for working numba
+ * Fix patch to skip some tests which was lacking `import multiprocessing`
- -- Andreas Tille <tille at debian.org> Sat, 16 Dec 2023 22:25:27 +0100
+ -- Andreas Tille <tille at debian.org> Fri, 26 Jan 2024 15:36:11 +0100
python-cogent (2023.2.12a1+dfsg-4) unstable; urgency=medium
=====================================
debian/patches/ignore_tests_accessing_network.patch
=====================================
@@ -36,3 +36,13 @@ Description: Ignore some tests that try to access network
def test_open_url_exceptions():
"""non-http(s) address for url (should raise Exception)"""
with pytest.raises(Exception):
+--- a/tests/test_app/test_evo.py
++++ b/tests/test_app/test_evo.py
+@@ -870,6 +870,7 @@ def test_model_opt_args():
+ assert model._opt_args == {**opt_args, **{"show_progress": False}}
+
+
++ at pytest.mark.skip(reason="Do not test in Debian since offline")
+ def test_get_app_tree_is_url():
+ """A check that the model app can use a url for the tree"""
+ tree_url = "https://raw.githubusercontent.com/cogent3/cogent3/develop/tests/data/brca1_5.tree"
=====================================
debian/patches/skip-parallel-tests-on-single-cpu-systems.patch
=====================================
@@ -31,7 +31,7 @@ Description: Skip parallel tests on single-cpu systems
"""
--- a/tests/test_app/test_evo.py
+++ b/tests/test_app/test_evo.py
-@@ -2,7 +2,7 @@ import pathlib
+@@ -2,10 +2,11 @@ import pathlib
from os.path import dirname, join
from tempfile import TemporaryDirectory
@@ -40,7 +40,11 @@ Description: Skip parallel tests on single-cpu systems
from unittest.mock import MagicMock
import pytest
-@@ -846,6 +846,7 @@ class TestBootstrap(TestCase):
++import multiprocessing
+
+ from numpy.testing import assert_allclose, assert_raises
+
+@@ -846,6 +847,7 @@ class TestBootstrap(TestCase):
_ = io.load_db() + evo_app.bootstrap(hyp, num_reps=2) + writer
View it on GitLab: https://salsa.debian.org/med-team/python-cogent/-/compare/68f2ea53a01190b9456a2f7f27e3b750113343b3...b6252843b895ac0ae2dd14abf99a53985560343f
--
View it on GitLab: https://salsa.debian.org/med-team/python-cogent/-/compare/68f2ea53a01190b9456a2f7f27e3b750113343b3...b6252843b895ac0ae2dd14abf99a53985560343f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240126/ae68e7f0/attachment-0001.htm>
More information about the debian-med-commit
mailing list