From 202fd48fc4357dfa3cdf101d5f7f4b6860776d65 Mon Sep 17 00:00:00 2001 From: ellis Date: Fri, 25 Aug 2017 10:02:56 -0500 Subject: [PATCH] Fix errors --- test/test_meshmode.py | 10 ++++++---- testmpi.py => test/testmpi.py | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) rename testmpi.py => test/testmpi.py (98%) diff --git a/test/test_meshmode.py b/test/test_meshmode.py index f25930ca..be66f28d 100644 --- a/test/test_meshmode.py +++ b/test/test_meshmode.py @@ -52,12 +52,14 @@ logger = logging.getLogger(__name__) @pytest.mark.parametrize("num_partitions", [3, 6]) def test_mpi_communication(num_partitions): num_ranks = num_partitions + 1 - import subprocess, sys, os + from subprocess import check_call + import sys + import os newenv = os.environ.copy() newenv["PYTOOLS_RUN_WITHIN_MPI"] = "1" - subprocess.check_call(["mpirun", "-np", str(num_ranks), - sys.executable, "testmpi.py", str(num_partitions)], - env=newenv) + check_call(["mpirun", "-np", str(num_ranks), + sys.executable, "test/testmpi.py", str(num_partitions)], + env=newenv) # {{{ partition_interpolation diff --git a/testmpi.py b/test/testmpi.py similarity index 98% rename from testmpi.py rename to test/testmpi.py index 87a51914..7f84e501 100644 --- a/testmpi.py +++ b/test/testmpi.py @@ -1,3 +1,4 @@ +from __future__ import division, absolute_import, print_function import numpy as np -- GitLab