@@ -32,7 +32,7 @@ def test_simple_export(self):
32
32
33
33
assert result .exit_code == 0
34
34
assert os .path .exists ('t1.btv' )
35
- assert 150 < os .path .getsize ('t1.btv' ) < 240
35
+ assert os .path .getsize ('t1.btv' ) < 240
36
36
37
37
with open ('t1.btv' , 'rb' ) as file :
38
38
assert load (file , type_ = FastTreeValue ) == t1
@@ -44,11 +44,11 @@ def test_multiple_export(self):
44
44
45
45
assert result .exit_code == 0
46
46
assert os .path .exists ('t1.btv' )
47
- assert 150 < os .path .getsize ('t1.btv' ) < 240
47
+ assert os .path .getsize ('t1.btv' ) < 240
48
48
assert os .path .exists ('t2.btv' )
49
- assert 200 < os .path .getsize ('t2.btv' ) < 290
49
+ assert os .path .getsize ('t2.btv' ) < 290
50
50
assert os .path .exists ('t3.btv' )
51
- assert 210 < os .path .getsize ('t3.btv' ) < 260
51
+ assert os .path .getsize ('t3.btv' ) < 260
52
52
53
53
with open ('t1.btv' , 'rb' ) as file :
54
54
assert load (file , type_ = FastTreeValue ) == t1
@@ -63,9 +63,9 @@ def test_multiple_export(self):
63
63
assert result .exit_code == 0
64
64
assert not os .path .exists ('t1.btv' )
65
65
assert os .path .exists ('t2.btv' )
66
- assert 200 < os .path .getsize ('t2.btv' ) < 290
66
+ assert os .path .getsize ('t2.btv' ) < 290
67
67
assert os .path .exists ('t3.btv' )
68
- assert 210 < os .path .getsize ('t3.btv' ) < 260
68
+ assert os .path .getsize ('t3.btv' ) < 260
69
69
70
70
with open ('t2.btv' , 'rb' ) as file :
71
71
assert load (file , type_ = FastTreeValue ) == t2
@@ -80,11 +80,11 @@ def test_multiple_export_without_compression(self):
80
80
81
81
assert result .exit_code == 0
82
82
assert os .path .exists ('t1.btv' )
83
- assert 2120 < os .path .getsize ('t1.btv' ) < 2170
83
+ assert os .path .getsize ('t1.btv' ) < 2170
84
84
assert os .path .exists ('t2.btv' )
85
- assert 2120 < os .path .getsize ('t2.btv' ) < 2220
85
+ assert os .path .getsize ('t2.btv' ) < 2220
86
86
assert os .path .exists ('t3.btv' )
87
- assert 4120 < os .path .getsize ('t3.btv' ) < 4170
87
+ assert os .path .getsize ('t3.btv' ) < 4170
88
88
89
89
with open ('t1.btv' , 'rb' ) as file :
90
90
assert load (file , type_ = FastTreeValue ) == t1
@@ -100,11 +100,11 @@ def test_multiple_export_without_compression(self):
100
100
101
101
assert result .exit_code == 0
102
102
assert os .path .exists ('t1.btv' )
103
- assert 2120 < os .path .getsize ('t1.btv' ) < 2170
103
+ assert os .path .getsize ('t1.btv' ) < 2170
104
104
assert os .path .exists ('t2.btv' )
105
- assert 2120 < os .path .getsize ('t2.btv' ) < 2230
105
+ assert os .path .getsize ('t2.btv' ) < 2230
106
106
assert os .path .exists ('t3.btv' )
107
- assert 4120 < os .path .getsize ('t3.btv' ) < 4170
107
+ assert os .path .getsize ('t3.btv' ) < 4170
108
108
109
109
with open ('t1.btv' , 'rb' ) as file :
110
110
assert load (file , type_ = FastTreeValue ) == t1
@@ -121,11 +121,11 @@ def test_multiple_export_with_compress_define(self):
121
121
122
122
assert result .exit_code == 0
123
123
assert os .path .exists ('t1.btv' )
124
- assert 150 < os .path .getsize ('t1.btv' ) < 220
124
+ assert os .path .getsize ('t1.btv' ) < 220
125
125
assert os .path .exists ('t2.btv' )
126
- assert 160 < os .path .getsize ('t2.btv' ) < 240
126
+ assert os .path .getsize ('t2.btv' ) < 240
127
127
assert os .path .exists ('t3.btv' )
128
- assert 160 < os .path .getsize ('t3.btv' ) < 210
128
+ assert os .path .getsize ('t3.btv' ) < 210
129
129
130
130
with open ('t1.btv' , 'rb' ) as file :
131
131
assert load (file , type_ = FastTreeValue ) == t1
@@ -142,11 +142,11 @@ def test_multiple_export_with_compress_define(self):
142
142
143
143
assert result .exit_code == 0
144
144
assert os .path .exists ('t1.btv' )
145
- assert 260 < os .path .getsize ('t1.btv' ) < 330
145
+ assert os .path .getsize ('t1.btv' ) < 330
146
146
assert os .path .exists ('t2.btv' )
147
- assert 280 < os .path .getsize ('t2.btv' ) < 430
147
+ assert os .path .getsize ('t2.btv' ) < 430
148
148
assert os .path .exists ('t3.btv' )
149
- assert 280 < os .path .getsize ('t3.btv' ) < 375
149
+ assert os .path .getsize ('t3.btv' ) < 375
150
150
151
151
with open ('t1.btv' , 'rb' ) as file :
152
152
assert load (file , type_ = FastTreeValue ) == t1
@@ -169,9 +169,9 @@ def test_with_od(self):
169
169
170
170
assert result .exit_code == 0
171
171
assert os .path .exists ('subpath/t1.btv' )
172
- assert 200 < os .path .getsize ('subpath/t1.btv' ) < 290
172
+ assert os .path .getsize ('subpath/t1.btv' ) < 290
173
173
assert os .path .exists ('subpath/t2.btv' )
174
- assert 210 < os .path .getsize ('subpath/t2.btv' ) < 260
174
+ assert os .path .getsize ('subpath/t2.btv' ) < 260
175
175
assert not os .path .exists ('subpath/t3.btv' )
176
176
177
177
with open ('subpath/t1.btv' , 'rb' ) as file :
@@ -192,9 +192,9 @@ def test_with_od(self):
192
192
193
193
assert result .exit_code == 0
194
194
assert os .path .exists ('subpath/t1.btv' )
195
- assert 200 < os .path .getsize ('subpath/t1.btv' ) < 290
195
+ assert os .path .getsize ('subpath/t1.btv' ) < 290
196
196
assert os .path .exists ('subpath/t2.btv' )
197
- assert 210 < os .path .getsize ('subpath/t2.btv' ) < 260
197
+ assert os .path .getsize ('subpath/t2.btv' ) < 260
198
198
assert not os .path .exists ('subpath/t3.btv' )
199
199
200
200
with open ('subpath/t1.btv' , 'rb' ) as file :
@@ -213,9 +213,9 @@ def test_with_od(self):
213
213
assert result .exit_code == 0
214
214
assert not os .path .exists ('subpath/t1.btv' )
215
215
assert os .path .exists ('subpath/t2.btv' )
216
- assert 200 < os .path .getsize ('subpath/t2.btv' ) < 290
216
+ assert os .path .getsize ('subpath/t2.btv' ) < 290
217
217
assert os .path .exists ('subpath/t3.btv' )
218
- assert 210 < os .path .getsize ('subpath/t3.btv' ) < 260
218
+ assert os .path .getsize ('subpath/t3.btv' ) < 260
219
219
220
220
with open ('subpath/t2.btv' , 'rb' ) as file :
221
221
assert load (file , type_ = FastTreeValue ) == t2
@@ -233,9 +233,9 @@ def test_with_od(self):
233
233
assert not os .path .exists ('t1.btv' )
234
234
assert not os .path .exists ('t2.btv' )
235
235
assert os .path .exists ('ppp.btv' )
236
- assert 200 < os .path .getsize ('ppp.btv' ) < 290
236
+ assert os .path .getsize ('ppp.btv' ) < 290
237
237
assert os .path .exists ('t3.btv' )
238
- assert 210 < os .path .getsize ('t3.btv' ) < 260
238
+ assert os .path .getsize ('t3.btv' ) < 260
239
239
240
240
with open ('ppp.btv' , 'rb' ) as file :
241
241
assert load (file , type_ = FastTreeValue ) == t2
0 commit comments