We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e986d9f commit 523961fCopy full SHA for 523961f
Lib/test/test_cmd_line.py
@@ -3,6 +3,7 @@
3
# See test_cmd_line_script.py for testing of script execution
4
5
import os
6
+import re
7
import subprocess
8
import sys
9
import sysconfig
@@ -64,6 +65,9 @@ def test_help_env(self):
64
65
def test_help_xoptions(self):
66
out = self.verify_valid_flag('--help-xoptions')
67
self.assertIn(b'-X dev', out)
68
+ options = re.findall(b'^-X (\\w+)', out, re.MULTILINE)
69
+ self.assertEqual(options, sorted(options),
70
+ "options should be sorted alphabetically")
71
72
@support.cpython_only
73
def test_help_all(self):
0 commit comments