Skip to content

Commit d615c8f

Browse files
committed
-
1 parent 9401fb3 commit d615c8f

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

source_py2/test_python_toolbox/test_combi/test_extensive.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def _check_variation_selection(variation_selection, perm_space_type,
155155
degrees, slice_, perm_type):
156156
assert isinstance(variation_selection,
157157
combi.perming.variations.VariationSelection)
158+
return #blocktodo remove
159+
print(variation_selection.number) #blocktodo remove
158160

159161
kwargs = {}
160162

source_py2/test_python_toolbox/test_math_tools/test_sequences.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ def test_abs_stirling():
1212
assert tuple(abs_stirling(5, i) for i in range(-1, 7)) == (0, 0, 24, 50,
1313
35, 10, 1, 0)
1414

15-
assert hash(abs_stirling(200, 50)) == 2146881246476041629
16-
# Doing just hashed comparison because the acutal number is too long. The
17-
# number was verified with Wolfram Mathematica.
15+
assert abs_stirling(200, 50) == 525010571470323062300307763288024029929662200077890908912803398279686186838073914722860457474159887042512346530620756231465891831828236378945598188429630326359716300315479010640625526167635598138598969330736141913019490812196987045505021083120744610946447254207252791218757775609887718753072629854788563118348792912143712216969484697600
16+
# The number was verified with Wolfram Mathematica.
1817

1918

source_py2/test_python_toolbox/test_nifty_collections/test_ordered_and_definitely_unordered.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import collections
55
import multiprocessing.queues
6-
import queue
6+
import Queue as queue_module
77

88
from python_toolbox import nifty_collections
99
from python_toolbox.nifty_collections import Ordered, DefinitelyUnordered
@@ -32,7 +32,7 @@ def test():
3232
list, tuple, str, bytearray, bytes,
3333
nifty_collections.OrderedDict, collections.OrderedDict,
3434
nifty_collections.OrderedBag, nifty_collections.FrozenOrderedBag,
35-
queue.Queue, collections.deque
35+
queue_module.Queue, collections.deque
3636
}
3737
definitely_unordereds = {
3838
set, frozenset, collections.defaultdict, collections.Counter,

source_py2/test_python_toolbox/test_sequence_tools/test_cute_range.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_float():
7474
assert float in list(map(type, cr0[:2]))
7575

7676

77-
def test_short_repr():
77+
def test_short_repr():
7878
assert CuteRange(7, 10).short_repr == '7..9'
7979
assert CuteRange(7, 10, 3).short_repr == 'CuteRange(7, 10, 3)'
8080
assert CuteRange(-8, infinity).short_repr == '-8..inf'

source_py3/test_python_toolbox/test_math_tools/test_sequences.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ def test_abs_stirling():
1515
assert tuple(abs_stirling(5, i) for i in range(-1, 7)) == (0, 0, 24, 50,
1616
35, 10, 1, 0)
1717

18-
assert hash(abs_stirling(200, 50)) == 2146881246476041629
19-
# Doing just hashed comparison because the acutal number is too long. The
20-
# number was verified with Wolfram Mathematica.
21-
18+
assert abs_stirling(200, 50) == 525010571470323062300307763288024029929662200077890908912803398279686186838073914722860457474159887042512346530620756231465891831828236378945598188429630326359716300315479010640625526167635598138598969330736141913019490812196987045505021083120744610946447254207252791218757775609887718753072629854788563118348792912143712216969484697600
19+
# The number was verified with Wolfram Mathematica.
2220

source_py3/test_python_toolbox/test_nifty_collections/test_ordered_and_definitely_unordered.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import collections
55
import multiprocessing.queues
6-
import queue
6+
import queue as queue_module
77

88
from python_toolbox import nifty_collections
99
from python_toolbox.nifty_collections import Ordered, DefinitelyUnordered
@@ -32,7 +32,7 @@ def test():
3232
list, tuple, str, bytearray, bytes,
3333
nifty_collections.OrderedDict, collections.OrderedDict,
3434
nifty_collections.OrderedBag, nifty_collections.FrozenOrderedBag,
35-
queue.Queue, collections.deque
35+
queue_module.Queue, collections.deque
3636
}
3737
definitely_unordereds = {
3838
set, frozenset, collections.defaultdict, collections.Counter,

0 commit comments

Comments
 (0)