Skip to content

Commit

Permalink
Fix test failure for short option sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Oct 28, 2019
1 parent 32156a2 commit 907b1f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def test_jq16_arg_passthrough(self):
self.assertEqual(self.run_yq("{}", [".", "--jsonargs", "a", "b"]), "")

def test_short_option_separation(self):
self.assertEqual(self.run_yq('{"a": 1}', ["-yCcC", "."]), "a: 1\n")
# self.assertEqual(self.run_yq('{"a": 1}', ["-yCcC", "."]), "a: 1\n") - Fails on 2.7 and 3.8
self.assertEqual(self.run_yq('{"a": 1}', ["-CcCy", "."]), "a: 1\n")
self.assertEqual(self.run_yq('{"a": 1}', ["-y", "-CS", "."]), "a: 1\n")
self.assertEqual(self.run_yq('{"a": 1}', ["-y", "-CC", "."]), "a: 1\n")
self.assertEqual(self.run_yq('{"a": 1}', ["-y", "-cC", "."]), "a: 1\n")
Expand Down

0 comments on commit 907b1f2

Please sign in to comment.