Tweaks to long-literal handling...

* Use version tuple comparison for version testing
* small lintin of n_actions
* revise test so assert is not removed in 3.8
This commit is contained in:
rocky
2023-04-19 02:08:36 -04:00
parent 6f3fe06594
commit c01ab5e001
3 changed files with 11 additions and 7 deletions

View File

@@ -726,9 +726,12 @@ values = {
assert sorted(values.values())[1:] == list(range(2, 34))
def assert_equal(x, y):
assert x == y
# Check that we can distinguish names from strings in literal collections, e.g. lists.
# The list has to have more than 4 items to get accumulated in a collection
a = ["y", 'Exception', "x", Exception, "z"]
assert a[1] == "Exception"
assert a[3] == Exception
assert_equal(a[1], "Exception")
assert_equal(a[3], Exception)