# Parallel tests based on Python version

**URL:** <https://discuss.circleci.com/t/parallel-tests-based-on-python-version/7737>\
**Category:** Programming Languages\
**Tags:** python, parallelism, circle-yml\
**Created:** [October 28, 2016, 6:14pm UTC](https://discuss.circleci.com/t/parallel-tests-based-on-python-version/7737 "2016-10-28T18:14:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erp12](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@erp12](https://discuss.circleci.com/u/erp12)\
**Post date:** [October 28, 2016, 6:14pm UTC](https://discuss.circleci.com/t/parallel-tests-based-on-python-version/7737/1 "2016-10-28T18:14:27Z")

</div>

Lets say I have a script called `my_unit_tests.py` for an application I am writing that must be comparable with python3 and python2.

It only took me a few minutes of reading the documentation and examples to see how I would achieve this, without parallelism.

```auto
machine:
  post:
    - pyenv global 2.7.12 3.5.2
dependencies:
  post:
    - python2.7 setup.py install
    - python3.5 setup.py install
test:
  override:
    - python2.7 my_unit_tests.py
    - python3.5 my_unit_tests.py

```

I thought it might be nice to have `python2.7 my_unit_tests.py` happen on one node, and `python3.5 my_unit_tests.py` happen on another.

Is this easily done? I couldn’t find any examples of anyone doing exactly this, and none of my attempts to get this to happen worked. Any advice is much appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:33am UTC](https://discuss.circleci.com/t/parallel-tests-based-on-python-version/7737/2 "2018-06-18T11:33:07Z")

</div>


