Reduce number of errors under Python 3 another smidge.

This commit is contained in:
Chris Pressey committed 2018-09-06 14:21:29 +01:00
1 parent 3c1564ea09
commit 3fd7e52bc7
3 files changed
+9 -5

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""Usage: sixtypical [OPTIONS] FILES
+1 -1
View File
@@ -172,7 +172,7 @@ class LocationRef(Ref):
@classmethod
def format_set(cls, location_refs):
return '{%s}' % ', '.join([str(loc) for loc in sorted(location_refs)])
return '{%s}' % ', '.join([str(loc) for loc in sorted(location_refs, key=lambda x: x.name)])
class IndirectRef(Ref):
+7 -3
View File
@@ -2001,6 +2001,8 @@ It will continue to be defined outside the block.
A trashed value that has been saved can be used inside the block.
It will continue to be trashed outside the block.
(Note, both x and a are unmeaningful in this test.)
| routine main
| inputs a
| outputs a, x
@@ -2013,7 +2015,7 @@ It will continue to be trashed outside the block.
| ld x, 1
| }
| }
? UnmeaningfulOutputError: x
? UnmeaningfulOutputError
The known range of a value will be preserved outside the block as well.
@@ -2272,7 +2274,9 @@ Can't `copy` to a memory location that doesn't appear in (outputs ∪ trashes).
| }
? ForbiddenWriteError: lives
a, z, and n are trashed, and must be declared as such
a, z, and n are trashed, and must be declared as such.
(Note, both n and z are forbidden writes in this tests.)
| byte lives
| routine main
@@ -2280,7 +2284,7 @@ a, z, and n are trashed, and must be declared as such
| {
| copy 0, lives
| }
? ForbiddenWriteError: n
? ForbiddenWriteError
a, z, and n are trashed, and must not be declared as outputs.