salt/tests
Erik Johnson 6d52aeb739
Replace os.walk with a helper function
On PY2, when os.walk is invoked with a str as input, the paths in the
return data are all str types as well. This leaves undecoded unicode
data in those strings when files/dirs under the top dir that was passed
contain unicode characters in the filename.

>>> import os
>>> list(os.walk('temp'))
[('temp', [], ['\xd0\x94.txt', 'foo.txt'])]
>>> list(os.walk(u'temp'))
[(u'temp', [], [u'\u0414.txt', u'foo.txt'])]

The helper introduced here ensures that we always invoke os.walk with a
unicode top-level dir, so that we get unicode types in the return data.
2017-12-13 16:38:12 -06:00
..
integration Merge pull request #44775 from twangboy/win_chocolatey 2017-12-13 10:06:26 -05:00
kitchen comment wordpress module 2017-10-30 13:34:28 -06:00
perf Use explicit unicode strings + break up salt.utils 2017-08-08 13:33:43 -05:00
pkg/rpm
support Update old utils paths to new utils paths 2017-12-11 18:43:33 -05:00
unit Replace os.walk with a helper function 2017-12-13 16:38:12 -06:00
utils Misplaced test. Use tests.support.unit instead. 2017-04-01 14:23:00 +01:00
__init__.py
buildpackage.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
committer_parser.py Use with blocks (or try/finally) to ensure filehandles are closed 2017-11-09 15:05:40 -06:00
conftest.py Use explicit unicode strings + break up salt.utils 2017-08-08 13:33:43 -05:00
consist.py Use with blocks (or try/finally) to ensure filehandles are closed 2017-11-09 15:05:40 -06:00
eventlisten.py Use explicit unicode strings + break up salt.utils 2017-08-08 13:33:43 -05:00
eventlisten.sh
jenkins.py Use explicit unicode strings + break up salt.utils 2017-08-08 13:33:43 -05:00
minionswarm.py Use with blocks (or try/finally) to ensure filehandles are closed 2017-11-09 15:05:40 -06:00
modparser.py
packdump.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
runtests.py Moving scheduler tests into a new location. Adding new TEST_SUITE to runtests.py. Add CLI flag to runtests.py so the scheduler tests can be run invidually. 2017-12-12 08:37:38 -08:00
salt-tcpdump.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
saltsh.py Rename 'environment' config option to 'saltenv' 2017-11-30 13:08:49 -06:00
wheeltest.py
whitelist.txt Add back the two loader tests 2017-04-17 14:04:20 -06:00
zypp_plugin.py Pylint fixes 2017-06-21 10:09:11 +01:00