File tree Expand file tree Collapse file tree 4 files changed +0
-60
lines changed Expand file tree Collapse file tree 4 files changed +0
-60
lines changed Original file line number Diff line number Diff line change 35
35
pass
36
36
""" )
37
37
38
- FILTER_SIX_ALREADY = ("""\
39
- from six.moves import filter
40
- filter(None, [1])
41
- """ , """\
42
- from six.moves import filter
43
- filter(None, [1])
44
- """ )
45
-
46
38
47
39
def test_filter_call ():
48
40
check_on_input (* FILTER_CALL )
@@ -55,9 +47,3 @@ def test_filter_too_many_args():
55
47
56
48
def test_filter_kwargs ():
57
49
check_on_input (* FILTER_KWARGS )
58
-
59
- def test_filter_iterator_context ():
60
- check_on_input (* FILTER_ITERATOR_CONTEXT )
61
-
62
- def test_filter_six_already ():
63
- check_on_input (* FILTER_SIX_ALREADY )
Original file line number Diff line number Diff line change 49
49
pass
50
50
""" )
51
51
52
- MAP_SIX_ALREADY = ("""\
53
- from six.moves import map
54
- map(x, [1])
55
- """ , """\
56
- from six.moves import map
57
- map(x, [1])
58
- """ )
59
-
60
52
61
53
def test_map_2_args ():
62
54
check_on_input (* MAP_2_ARGS )
@@ -78,6 +70,3 @@ def test_map_ref():
78
70
79
71
def test_map_iterator_context ():
80
72
check_on_input (* MAP_ITERATOR_CONTEXT )
81
-
82
- def test_map_six_already ():
83
- check_on_input (* MAP_SIX_ALREADY )
Original file line number Diff line number Diff line change 1
1
from utils import check_on_input
2
2
3
3
4
- # range()
5
4
RANGE = ("""\
6
5
x = range(1)
7
6
""" , """\
8
7
from six.moves import range
9
8
x = list(range(1))
10
9
""" )
11
10
12
- RANGE_IDEMPOTENT = ("""\
13
- x = list(range(1))
14
- """ , """\
15
- from six.moves import range
16
- x = list(range(1))
17
- """ )
18
-
19
- # xrange()
20
11
XRANGE = ("""\
21
12
xrange(1)
22
13
""" , """\
23
14
from six.moves import range
24
15
range(1)
25
16
""" )
26
17
27
- XRANGE_IDEMPOTENT = ("""\
28
- from six.moves import range
29
- range(1)
30
- """ , """\
31
- from six.moves import range
32
- range(1)
33
- """ )
34
-
35
- # Both
36
18
XRANGE_RANGE = ("""\
37
19
x = xrange(1)
38
20
y = range(1)
46
28
def test_range ():
47
29
check_on_input (* RANGE )
48
30
49
- def test_range_idempotent ():
50
- check_on_input (* RANGE_IDEMPOTENT )
51
-
52
31
def test_xrange ():
53
32
check_on_input (* XRANGE )
54
33
55
- def test_xrange_idempotent ():
56
- check_on_input (* XRANGE_IDEMPOTENT )
57
-
58
34
def test_xrange_range ():
59
35
check_on_input (* XRANGE_RANGE )
Original file line number Diff line number Diff line change 46
46
pass
47
47
""" )
48
48
49
- ZIP_SIX_ALREADY = ("""\
50
- from six.moves import zip
51
- zip(x)
52
- """ , """\
53
- from six.moves import zip
54
- zip(x)
55
- """ )
56
-
57
49
58
50
def test_zip_call_no_args ():
59
51
check_on_input (* ZIP_CALL_NO_ARGS )
@@ -72,6 +64,3 @@ def test_zip_kwargs():
72
64
73
65
def test_zip_iterator_context ():
74
66
check_on_input (* ZIP_ITERATOR_CONTEXT )
75
-
76
- def test_zip_six_already ():
77
- check_on_input (* ZIP_SIX_ALREADY )
You can’t perform that action at this time.
0 commit comments