Skip to content

Commit f721f82

Browse files
committed
Fix renaming.
1 parent 93b63ab commit f721f82

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

tests/test_lazy_object_proxy.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,13 +1098,13 @@ def test_iadd(lop):
10981098
value += 1
10991099
assert value == 2
11001100

1101-
if lazy_object_proxy.kind != 'simple':
1101+
if lop.kind != 'simple':
11021102
assert type(value) == lop.Proxy
11031103

11041104
value += one
11051105
assert value == 3
11061106

1107-
if lazy_object_proxy.kind != 'simple':
1107+
if lop.kind != 'simple':
11081108
assert type(value) == lop.Proxy
11091109

11101110

@@ -1114,13 +1114,13 @@ def test_isub(lop):
11141114

11151115
value -= 1
11161116
assert value == 0
1117-
if lazy_object_proxy.kind != 'simple':
1117+
if lop.kind != 'simple':
11181118
assert type(value) == lop.Proxy
11191119

11201120
value -= one
11211121
assert value == -1
11221122

1123-
if lazy_object_proxy.kind != 'simple':
1123+
if lop.kind != 'simple':
11241124
assert type(value) == lop.Proxy
11251125

11261126

@@ -1131,13 +1131,13 @@ def test_imul(lop):
11311131
value *= 2
11321132
assert value == 4
11331133

1134-
if lazy_object_proxy.kind != 'simple':
1134+
if lop.kind != 'simple':
11351135
assert type(value) == lop.Proxy
11361136

11371137
value *= two
11381138
assert value == 8
11391139

1140-
if lazy_object_proxy.kind != 'simple':
1140+
if lop.kind != 'simple':
11411141
assert type(value) == lop.Proxy
11421142

11431143

@@ -1151,13 +1151,13 @@ def test_idiv(lop):
11511151
value /= 2
11521152
assert value == 2 / 2
11531153

1154-
if lazy_object_proxy.kind != 'simple':
1154+
if lop.kind != 'simple':
11551155
assert type(value) == lop.Proxy
11561156

11571157
value /= two
11581158
assert value == 2 / 2 / 2
11591159

1160-
if lazy_object_proxy.kind != 'simple':
1160+
if lop.kind != 'simple':
11611161
assert type(value) == lop.Proxy
11621162

11631163

@@ -1168,13 +1168,13 @@ def test_ifloordiv(lop):
11681168
value //= 2
11691169
assert value == 2 // 2
11701170

1171-
if lazy_object_proxy.kind != 'simple':
1171+
if lop.kind != 'simple':
11721172
assert type(value) == lop.Proxy
11731173

11741174
value //= two
11751175
assert value == 2 // 2 // 2
11761176

1177-
if lazy_object_proxy.kind != 'simple':
1177+
if lop.kind != 'simple':
11781178
assert type(value) == lop.Proxy
11791179

11801180

@@ -1185,13 +1185,13 @@ def test_imod(lop):
11851185
value %= 2
11861186
assert value == 10 % 2
11871187

1188-
if lazy_object_proxy.kind != 'simple':
1188+
if lop.kind != 'simple':
11891189
assert type(value) == lop.Proxy
11901190

11911191
value %= two
11921192
assert value == 10 % 2 % 2
11931193

1194-
if lazy_object_proxy.kind != 'simple':
1194+
if lop.kind != 'simple':
11951195
assert type(value) == lop.Proxy
11961196

11971197

@@ -1202,13 +1202,13 @@ def test_ipow(lop):
12021202
value **= 2
12031203
assert value == 10 ** 2
12041204

1205-
if lazy_object_proxy.kind != 'simple':
1205+
if lop.kind != 'simple':
12061206
assert type(value) == lop.Proxy
12071207

12081208
value **= two
12091209
assert value == 10 ** 2 ** 2
12101210

1211-
if lazy_object_proxy.kind != 'simple':
1211+
if lop.kind != 'simple':
12121212
assert type(value) == lop.Proxy
12131213

12141214

@@ -1219,13 +1219,13 @@ def test_ilshift(lop):
12191219
value <<= 2
12201220
assert value == 256 << 2
12211221

1222-
if lazy_object_proxy.kind != 'simple':
1222+
if lop.kind != 'simple':
12231223
assert type(value) == lop.Proxy
12241224

12251225
value <<= two
12261226
assert value == 256 << 2 << 2
12271227

1228-
if lazy_object_proxy.kind != 'simple':
1228+
if lop.kind != 'simple':
12291229
assert type(value) == lop.Proxy
12301230

12311231

@@ -1236,13 +1236,13 @@ def test_irshift(lop):
12361236
value >>= 2
12371237
assert value == 2 >> 2
12381238

1239-
if lazy_object_proxy.kind != 'simple':
1239+
if lop.kind != 'simple':
12401240
assert type(value) == lop.Proxy
12411241

12421242
value >>= two
12431243
assert value == 2 >> 2 >> 2
12441244

1245-
if lazy_object_proxy.kind != 'simple':
1245+
if lop.kind != 'simple':
12461246
assert type(value) == lop.Proxy
12471247

12481248

@@ -1253,13 +1253,13 @@ def test_iand(lop):
12531253
value &= 2
12541254
assert value == 1 & 2
12551255

1256-
if lazy_object_proxy.kind != 'simple':
1256+
if lop.kind != 'simple':
12571257
assert type(value) == lop.Proxy
12581258

12591259
value &= two
12601260
assert value == 1 & 2 & 2
12611261

1262-
if lazy_object_proxy.kind != 'simple':
1262+
if lop.kind != 'simple':
12631263
assert type(value) == lop.Proxy
12641264

12651265

@@ -1270,13 +1270,13 @@ def test_ixor(lop):
12701270
value ^= 2
12711271
assert value == 1 ^ 2
12721272

1273-
if lazy_object_proxy.kind != 'simple':
1273+
if lop.kind != 'simple':
12741274
assert type(value) == lop.Proxy
12751275

12761276
value ^= two
12771277
assert value == 1 ^ 2 ^ 2
12781278

1279-
if lazy_object_proxy.kind != 'simple':
1279+
if lop.kind != 'simple':
12801280
assert type(value) == lop.Proxy
12811281

12821282

@@ -1287,13 +1287,13 @@ def test_ior(lop):
12871287
value |= 2
12881288
assert value == 1 | 2
12891289

1290-
if lazy_object_proxy.kind != 'simple':
1290+
if lop.kind != 'simple':
12911291
assert type(value) == lop.Proxy
12921292

12931293
value |= two
12941294
assert value == 1 | 2 | 2
12951295

1296-
if lazy_object_proxy.kind != 'simple':
1296+
if lop.kind != 'simple':
12971297
assert type(value) == lop.Proxy
12981298

12991299

@@ -1789,15 +1789,15 @@ def pickler(request):
17891789
Decimal("1.2")
17901790
])
17911791
@pytest.mark.parametrize("level", range(pickle.HIGHEST_PROTOCOL + 1))
1792-
def test_pickling(lazy_object_proxy, obj, pickler, level):
1792+
def test_pickling(lop, obj, pickler, level):
17931793
proxy = lop.Proxy(lambda: obj)
17941794
dump = pickler.dumps(proxy, protocol=level)
17951795
result = pickler.loads(dump)
17961796
assert obj == result
17971797

17981798

17991799
@pytest.mark.parametrize("level", range(pickle.HIGHEST_PROTOCOL + 1))
1800-
def test_pickling_exception(lazy_object_proxy, pickler, level):
1800+
def test_pickling_exception(lop, pickler, level):
18011801
class BadStuff(Exception):
18021802
pass
18031803

@@ -1927,7 +1927,7 @@ def __init__(self, func, **lazy_attr):
19271927

19281928

19291929
def test_subclassing_dynamic_with_local_attr(lop):
1930-
if lazy_object_proxy.kind == 'cext':
1930+
if lop.kind == 'cext':
19311931
pytest.skip("Not possible.")
19321932

19331933
class Foo:

0 commit comments

Comments
 (0)