@@ -551,8 +551,7 @@ async def test_in_interface(self):
551551
552552
553553class TestImage :
554- @pytest .mark .asyncio
555- async def test_component_functions (self ):
554+ def test_component_functions (self ):
556555 """
557556 Preprocess, postprocess, serialize, generate_sample, get_config, _segment_by_slic
558557 type: pil, file, filepath, numpy
@@ -618,8 +617,7 @@ async def test_component_functions(self):
618617 image_output = gr .Image (type = "numpy" )
619618 assert image_output .postprocess (y_img ).startswith ("data:image/png;base64," )
620619
621- @pytest .mark .asyncio
622- async def test_in_interface_as_input (self ):
620+ def test_in_interface_as_input (self ):
623621 """
624622 Interface, process, interpret
625623 type: file
@@ -638,8 +636,7 @@ async def test_in_interface_as_input(self):
638636 lambda x : np .sum (x ), image_input , "number" , interpretation = "default"
639637 )
640638
641- @pytest .mark .asyncio
642- async def test_in_interface_as_output (self ):
639+ def test_in_interface_as_output (self ):
643640 """
644641 Interface, process
645642 """
@@ -789,8 +786,7 @@ def test_tokenize(self):
789786 similarity = SequenceMatcher (a = x_wav ["data" ], b = x_new ).ratio ()
790787 assert similarity > 0.9
791788
792- @pytest .mark .asyncio
793- async def test_in_interface (self ):
789+ def test_in_interface (self ):
794790 def reverse_audio (audio ):
795791 sr , data = audio
796792 return (sr , np .flipud (data ))
@@ -806,8 +802,7 @@ def reverse_audio(audio):
806802 ).ratio ()
807803 assert similarity > 0.99
808804
809- @pytest .mark .asyncio
810- async def test_in_interface_as_output (self ):
805+ def test_in_interface_as_output (self ):
811806 """
812807 Interface, process
813808 """
@@ -1007,7 +1002,7 @@ def test_dataframe_postprocess_all_types(self):
10071002 "%B %d, %Y, %r"
10081003 ),
10091004 "number" : np .array ([0.2233 , 0.57281 ]),
1010- "number_2" : np .array ([84 , 23 ]).astype (np .int ),
1005+ "number_2" : np .array ([84 , 23 ]).astype (np .int64 ),
10111006 "bool" : [True , False ],
10121007 "markdown" : ["# Hello" , "# Goodbye" ],
10131008 }
@@ -1167,8 +1162,7 @@ def test_component_functions(self):
11671162 }
11681163 ).endswith (".mp4" )
11691164
1170- @pytest .mark .asyncio
1171- async def test_in_interface (self ):
1165+ def test_in_interface (self ):
11721166 """
11731167 Interface, process
11741168 """
@@ -1396,8 +1390,7 @@ def test_color_argument(self):
13961390 )
13971391 assert update_5 ["color" ] == "transparent"
13981392
1399- @pytest .mark .asyncio
1400- async def test_in_interface (self ):
1393+ def test_in_interface (self ):
14011394 """
14021395 Interface, process
14031396 """
@@ -1640,8 +1633,7 @@ def test_component_functions(self):
16401633 "root_url" : None ,
16411634 } == html_component .get_config ()
16421635
1643- @pytest .mark .asyncio
1644- async def test_in_interface (self ):
1636+ def test_in_interface (self ):
16451637 """
16461638 Interface, process
16471639 """
@@ -1660,8 +1652,7 @@ def test_component_functions(self):
16601652 """<h1>Let\' s learn about <span class="math inline"><span style=\' font-size: 0px\' >x</span><svg xmlns:xlink="http://www.w3.org/1999/xlink" width="11.6pt" height="19.35625pt" viewBox="0 0 11.6 19.35625" xmlns="http://www.w3.org/2000/svg" version="1.1">\n \n <defs>\n <style type="text/css">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n </defs>\n <g id="figure_1">\n <g id="patch_1">\n <path d="M 0 19.35625"""
16611653 )
16621654
1663- @pytest .mark .asyncio
1664- async def test_in_interface (self ):
1655+ def test_in_interface (self ):
16651656 """
16661657 Interface, process
16671658 """
@@ -1693,8 +1684,7 @@ def test_component_functions(self):
16931684 "style" : {},
16941685 } == component .get_config ()
16951686
1696- @pytest .mark .asyncio
1697- async def test_in_interface (self ):
1687+ def test_in_interface (self ):
16981688 """
16991689 Interface, process
17001690 """
0 commit comments