Fix unit test parametrize order on Python 3.5.

(cherry picked from commit 53b230ca74)
This commit is contained in:
Matt Clay
2018-09-17 22:00:20 -07:00
committed by Toshio Kuratomi
parent 09e61f29e9
commit 6d07cec588
3 changed files with 31 additions and 30 deletions

View File

@ -73,8 +73,8 @@ HOW_MANY_DOTS = (
'PostgreSQL does not support column with more than 4 dots'),
)
VALID_QUOTES = ((test, VALID[test]) for test in VALID)
INVALID_QUOTES = ((test[0], test[1], INVALID[test]) for test in INVALID)
VALID_QUOTES = ((test, VALID[test]) for test in sorted(VALID))
INVALID_QUOTES = ((test[0], test[1], INVALID[test]) for test in sorted(INVALID))
@pytest.mark.parametrize("identifier, quoted_identifier", VALID_QUOTES)