提交 7b1f2a06 编写于 作者: A Andrés Delfino 提交者: Pradyun Gedam

Add test for PR #5293 (#5325)

* Test that trailing os.sep are ignored while searching PATH
* Simplify paths list creation
上级 e2700629
Add test for PR 5293: Remove trailing os.sep to avoid false negatives
......@@ -463,3 +463,10 @@ class TestMessageAboutScriptsNotOnPATH(object):
assert retval is None
else:
assert retval is not None
def test_trailing_ossep_removal(self):
retval = self._template(
paths=[os.path.join('a', 'b', '')],
scripts=[os.path.join('a', 'b', 'c')]
)
assert retval is None
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册