[med-svn] [Git][med-team/python-biopython][master] allow to override PHYMLCPUS in phyml test patch

Étienne Mollier gitlab at salsa.debian.org
Thu Sep 10 22:23:09 BST 2020



Étienne Mollier pushed to branch master at Debian Med / python-biopython


Commits:
891939b0 by Étienne Mollier at 2020-09-10T23:14:23+02:00
allow to override PHYMLCPUS in phyml test patch

This is in case one wishes to explicitely test the parallel behavior.

- - - - -


1 changed file:

- debian/patches/stabilize-phyml-test.patch


Changes:

=====================================
debian/patches/stabilize-phyml-test.patch
=====================================
@@ -11,11 +11,12 @@ Last-Update: 2020-09-10
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 --- python-biopython.orig/Tests/test_phyml_tool.py
 +++ python-biopython/Tests/test_phyml_tool.py
-@@ -43,6 +43,7 @@
+@@ -43,6 +43,8 @@
  
      def test_phyml(self):
          """Run PhyML using the wrapper."""
-+        os.putenv('PHYMLCPUS', '1')
++        if not os.getenv('PHYMLCPUS'):
++            os.putenv('PHYMLCPUS', '1')
          cmd = PhymlCommandline(phyml_exe, input=EX_PHYLIP, datatype="aa")
          # Smoke test
          try:



View it on GitLab: https://salsa.debian.org/med-team/python-biopython/-/commit/891939b0eb21c2cc0bddbc7738dbe5f7ba377221

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-biopython/-/commit/891939b0eb21c2cc0bddbc7738dbe5f7ba377221
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/20200910/8ae605dd/attachment.html>


More information about the debian-med-commit mailing list