Py v3.4 compat

This commit is contained in:
Anthony Scopatz 2017-12-07 17:17:53 -05:00
parent 70d7ef7c31
commit 38cffd2bdc

View file

@ -1367,6 +1367,7 @@ def test_iglobpath_empty_str(monkeypatch, xonsh_builtins):
# fail to return valid results, like an empty filename
def mockscandir(path):
yield ''
if hasattr(os, 'scandir'):
monkeypatch.setattr(os, 'scandir', mockscandir)
def mocklistdir(path):
return ['']