未验证 提交 924f3a51 编写于 作者: A Amador Pahim

Merge branch 'ldoktor-manual-selftest'

Signed-off-by: NAmador Pahim <apahim@redhat.com>
......@@ -165,7 +165,7 @@ class TestID(object):
class TestData(object):
"""
Class that adds the hability for tests to have access to data files
Class that adds the ability for tests to have access to data files
Writers of new test types can change the completely change the behavior
and still be compatible by providing an :attr:`DATA_SOURCES` attribute
......
......@@ -231,7 +231,7 @@ def string_safe_encode(input_str):
People tend to mix unicode streams with encoded strings. This function
tries to replace any input with a valid utf-8 encoded ascii stream.
On Python 3, it's a terrible idea to try to mess with encodings,
On Python 3, it's a terrible idea to try to mess with encoding,
so this function is limited to converting other types into
strings, such as numeric values that are often the members of a
matrix.
......@@ -274,7 +274,7 @@ def string_to_safe_path(input_str):
try:
return input_str.translate(_FS_TRANSLATE)
except TypeError:
# Deal with incorrect encodings
# Deal with incorrect encoding
for bad_chr in FS_UNSAFE_CHARS:
input_str = input_str.replace(bad_chr, "_")
return input_str
......@@ -98,7 +98,7 @@ class TestClassTestUnit(unittest.TestCase):
def test_data_dir(self):
"""
Tests that a valid datadir exists follwowing the test filename
Tests that a valid datadir exists following the test filename
"""
max_length_name = os.path.join(self.tmpdir, "a" * 250)
tst = self._get_fake_filename_test(max_length_name)
......
......@@ -445,3 +445,7 @@ multipathd
sda
sdb
href
formatter
parsers
lf
uncompressing
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册