Skip to content

Commit 52f4f1c

Browse files
committed
Python 2 parity
1 parent 258e0f3 commit 52f4f1c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

source_py2/python_toolbox/combi/perming/perm_space.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,7 @@ def __getitem__(self, i):
687687
tuple(
688688
(self._undapplied_fixed_map[m] if
689689
(m in self.fixed_indices) else
690-
next(free_values_perm_iterator))
691-
for m in range(self.sequence_length)
690+
next(free_values_perm_iterator)) for m in self.indices
692691
),
693692
self
694693
)

source_py2/test_python_toolbox/test_cute_testing/test_raise_assertor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ def test_assert_exact_type():
100100
raise KeyError("Look at me, I'm a KeyError")
101101

102102
error_message = (
103-
"The exception `KeyError(\"Look at me, I'm a KeyError\",)` was "
104-
"raised, and it *is* an instance of the `LookupError` we were "
103+
"was raised, and it *is* an instance of the `LookupError` we were "
105104
"expecting; but its type is not `LookupError`, it's `KeyError`, which "
106105
"is a subclass of `LookupError`, but you specified "
107106
"`assert_exact_type=True`, so subclasses aren't acceptable."

0 commit comments

Comments
 (0)