@@ -56,7 +56,7 @@ def test_read_cursor_init():
5656 assert cursor .warnings () == []
5757 assert cursor .count () == 4
5858 assert clean_keys (cursor .batch ()) == [doc1 , doc2 ]
59- assert isinstance (cursor .statistics ()['execution_time' ], float )
59+ assert isinstance (cursor .statistics ()['execution_time' ], ( int , float ) )
6060
6161
6262@pytest .mark .order2
@@ -73,7 +73,7 @@ def test_read_cursor_first():
7373 assert cursor .warnings () == []
7474 assert cursor .count () == 4
7575 assert clean_keys (cursor .batch ()) == [doc2 ]
76- assert isinstance (cursor .statistics ()['execution_time' ], float )
76+ assert isinstance (cursor .statistics ()['execution_time' ], ( int , float ) )
7777
7878
7979@pytest .mark .order3
@@ -90,7 +90,7 @@ def test_read_cursor_second():
9090 assert cursor .warnings () == []
9191 assert cursor .count () == 4
9292 assert clean_keys (cursor .batch ()) == []
93- assert isinstance (cursor .statistics ()['execution_time' ], float )
93+ assert isinstance (cursor .statistics ()['execution_time' ], ( int , float ) )
9494
9595
9696@pytest .mark .order4
@@ -107,7 +107,7 @@ def test_read_cursor_third():
107107 assert cursor .warnings () == []
108108 assert cursor .count () == 4
109109 assert clean_keys (cursor .batch ()) == [doc3 ]
110- assert isinstance (cursor .statistics ()['execution_time' ], float )
110+ assert isinstance (cursor .statistics ()['execution_time' ], ( int , float ) )
111111
112112
113113@pytest .mark .order5
@@ -124,7 +124,7 @@ def test_read_cursor_finish():
124124 assert cursor .warnings () == []
125125 assert cursor .count () == 4
126126 assert clean_keys (cursor .batch ()) == []
127- assert isinstance (cursor .statistics ()['execution_time' ], float )
127+ assert isinstance (cursor .statistics ()['execution_time' ], ( int , float ) )
128128 with pytest .raises (StopIteration ):
129129 cursor .next ()
130130 assert cursor .close (ignore_missing = True ) is False
@@ -185,7 +185,7 @@ def test_write_cursor_init():
185185 assert cursor .warnings () == []
186186 assert cursor .count () == 2
187187 assert clean_keys (cursor .batch ()) == [doc1 ]
188- assert isinstance (cursor .statistics ()['execution_time' ], float )
188+ assert isinstance (cursor .statistics ()['execution_time' ], ( int , float ) )
189189
190190
191191@pytest .mark .order8
@@ -202,7 +202,7 @@ def test_write_cursor_first():
202202 assert cursor .warnings () == []
203203 assert cursor .count () == 2
204204 assert clean_keys (cursor .batch ()) == []
205- assert isinstance (cursor .statistics ()['execution_time' ], float )
205+ assert isinstance (cursor .statistics ()['execution_time' ], ( int , float ) )
206206
207207
208208@pytest .mark .order9
@@ -219,7 +219,7 @@ def test_write_cursor_second():
219219 assert cursor .warnings () == []
220220 assert cursor .count () == 2
221221 assert clean_keys (cursor .batch ()) == []
222- assert isinstance (cursor .statistics ()['execution_time' ], float )
222+ assert isinstance (cursor .statistics ()['execution_time' ], ( int , float ) )
223223 with pytest .raises (StopIteration ):
224224 cursor .next ()
225225 assert cursor .close (ignore_missing = True ) is False
0 commit comments