Changeset 2d29265 in trunk


Ignore:
Timestamp:
2020-08-21T23:55:34Z (5 years ago)
Author:
Jason R. Coombs <jaraco@…>
Branches:
master
Children:
8b553d2
Parents:
480bec6
git-author:
Jason R. Coombs <jaraco@…> (2020-08-21 20:26:48)
git-committer:
Jason R. Coombs <jaraco@…> (2020-08-21 23:55:34)
Message:

Bypass Python 3 check when running under tox.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/scripts/runner.py

    r480bec6 r2d29265  
    181181
    182182def run():
    183     assert sys.version_info < (3,), u"Tahoe-LAFS does not run under Python 3. Please use Python 2.7.x."
     183    if 'TOX_ENV_NAME' not in os.environ:
     184        assert sys.version_info < (3,), u"Tahoe-LAFS does not run under Python 3. Please use Python 2.7.x."
    184185
    185186    if sys.platform == "win32":
Note: See TracChangeset for help on using the changeset viewer.