Skip to content

Commit

Permalink
use integral for slice
Browse files Browse the repository at this point in the history
  • Loading branch information
mriehl committed Dec 15, 2014
1 parent 54052b9 commit 84047b6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -89,7 +89,7 @@ def run_unit_tests(project, logger):
logger.warn("unittest_file_suffix is deprecated, please use unittest_module_glob")
module_glob = "*{0}".format(unittest_file_suffix)
if module_glob.endswith(".py"):
WITHOUT_DOT_PY = slice(None, -3)
WITHOUT_DOT_PY = slice(0, -3)
module_glob = module_glob[WITHOUT_DOT_PY]
project.set_property("unittest_module_glob", module_glob)
else:
Expand Down

0 comments on commit 84047b6

Please sign in to comment.