Skip to content

Commit 1ae218e

Browse files
committed
py2 string checking
1 parent 5714c1f commit 1ae218e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/test_run_cmd.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pytest
22
import importlib
33
from subprocess import CalledProcessError
4+
from six import string_types
45
script = importlib.import_module("aci-preupgrade-validation-script")
56

67

@@ -9,8 +10,8 @@
910
[
1011
(["ls", "-l"], True, list),
1112
("ls -l", True, list),
12-
(["ls", "-l"], False, str),
13-
("ls -l", False, str),
13+
(["ls", "-l"], False, string_types),
14+
("ls -l", False, string_types),
1415
],
1516
)
1617
def test_run_cmd_output_type(cmd, splitlines, expected_type):

0 commit comments

Comments
 (0)