We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e71804 commit cb46662Copy full SHA for cb46662
1 file changed
patsy/test_build.py
@@ -682,15 +682,19 @@ def t(which_terms, variables, columns):
682
683
t("~ 0 + x + y + z", ["x", "y", "z"], slice(None))
684
t(["x", "y", "z"], ["x", "y", "z"], slice(None))
685
- if six.PY2:
+ # Compatibility: six.PY2 wasn't added until 1.4.0, but six.PY3 exists in
686
+ # all versions.
687
+ if not six.PY3:
688
t([unicode("x"), unicode("y"), unicode("z")],
689
["x", "y", "z"], slice(None))
690
t(all_terms, ["x", "y", "z"], slice(None))
691
t([all_terms[0], "y", all_terms[2]], ["x", "y", "z"], slice(None))
692
693
t("~ 0 + x + z", ["x", "z"], [0, 3])
694
t(["x", "z"], ["x", "z"], [0, 3])
695
696
697
698
t([unicode("x"), unicode("z")], ["x", "z"], [0, 3])
699
t([all_terms[0], all_terms[2]], ["x", "z"], [0, 3])
700
t([all_terms[0], "z"], ["x", "z"], [0, 3])
0 commit comments