Skip to content

Commit

Permalink
better python handling in test main
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckerns committed Jun 26, 2022
1 parent bcd29b5 commit 120ffe5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/pathos/blob/master/LICENSE

from __future__ import print_function
import glob
import os
import sys
import subprocess as sp
python = sys.executable
try:
import pox
python = pox.which_python(version=True, fullpath=False) or 'python'
python = pox.which_python(version=True) or python
except ImportError:
python = 'python'
import subprocess as sp
from sys import platform
shell = platform[:3] == 'win'
pass
shell = sys.platform[:3] == 'win'

suite = os.path.dirname(__file__) or os.path.curdir
tests = glob.glob(suite + os.path.sep + 'test_*.py')
Expand All @@ -28,4 +28,3 @@
if not p:
print('.', end='', flush=True)
print('')

0 comments on commit 120ffe5

Please sign in to comment.