File tree Expand file tree Collapse file tree 1 file changed +25
-18
lines changed
Expand file tree Collapse file tree 1 file changed +25
-18
lines changed Original file line number Diff line number Diff line change @@ -398,21 +398,28 @@ def test_util_in_top_level(self):
398398 pd .util .foo
399399
400400
401- def test_set_module ():
402- assert pd .DataFrame .__module__ == "pandas"
403- assert pd .CategoricalDtype .__module__ == "pandas"
404- assert pd .PeriodDtype .__module__ == "pandas"
405- assert pd .IntervalDtype .__module__ == "pandas"
406- assert pd .SparseDtype .__module__ == "pandas"
407- assert pd .ArrowDtype .__module__ == "pandas"
408- assert pd .Index .__module__ == "pandas"
409- assert pd .CategoricalIndex .__module__ == "pandas"
410- assert pd .DatetimeIndex .__module__ == "pandas"
411- assert pd .IntervalIndex .__module__ == "pandas"
412- assert pd .MultiIndex .__module__ == "pandas"
413- assert pd .PeriodIndex .__module__ == "pandas"
414- assert pd .RangeIndex .__module__ == "pandas"
415- assert pd .TimedeltaIndex .__module__ == "pandas"
416- assert pd .Period .__module__ == "pandas"
417- assert pd .Timestamp .__module__ == "pandas"
418- assert pd .Timedelta .__module__ == "pandas"
401+ @pytest .mark .parametrize (
402+ "classes" ,
403+ [
404+ pd .DataFrame ,
405+ pd .CategoricalDtype ,
406+ pd .PeriodDtype ,
407+ pd .IntervalDtype ,
408+ pd .SparseDtype ,
409+ pd .ArrowDtype ,
410+ pd .Index ,
411+ pd .CategoricalIndex ,
412+ pd .DatetimeIndex ,
413+ pd .IntervalIndex ,
414+ pd .MultiIndex ,
415+ pd .PeriodIndex ,
416+ pd .RangeIndex ,
417+ pd .TimedeltaIndex ,
418+ pd .Period ,
419+ pd .Timestamp ,
420+ pd .Timedelta ,
421+ pd .StringDtype ,
422+ ],
423+ )
424+ def test_set_module (classes ):
425+ assert classes .__module__ == "pandas"
You can’t perform that action at this time.
0 commit comments