Skip to content

Commit

Permalink
fix test execution for Python 3.3 and 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
drslump committed Nov 14, 2017
1 parent 213f264 commit 6c8c52d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ test=pytest

[tool:pytest]
# Make sure we only include those files suffixed with -tests
python_files = tests/*_tests.py
python_files = tests/test_*.py
7 changes: 4 additions & 3 deletions tests/di_tests.py → tests/test_di.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@

from di import injector, Key, DependencyMap, ContextualDependencyMap, PatchedDependencyMap, MetaInject

PY3 = sys.version_info[0] >= 3
PY3 = sys.hexversion >= 0x03000000
PY35 = sys.hexversion >= 0x03050000

# Import tests using Python3 syntax
if PY3:
# Import tests using Python3 syntax when >=3.5
if PY35:
from .py3 import *


Expand Down

0 comments on commit 6c8c52d

Please sign in to comment.