@@ -441,8 +441,8 @@ def test__getarff_md5_issue(self):
441441
442442 self .assertRaisesRegex (
443443 OpenMLHashException ,
444- "Checksum of downloaded file is unequal to the expected checksum abc when downloading "
445- "https://www.openml.org/data/download/61. Raised when downloading dataset 5 ." ,
444+ "Checksum of downloaded file is unequal to the expected checksum abc "
445+ "when downloading https://www.openml.org/data/download/61." ,
446446 _get_dataset_arff ,
447447 description ,
448448 )
@@ -451,17 +451,15 @@ def test__getarff_md5_issue(self):
451451
452452 @pytest .mark .uses_test_server ()
453453 def test__get_dataset_features (self ):
454- features_file = _get_dataset_features_file (self . workdir , 2 )
454+ features_file = _get_dataset_features_file (2 )
455455 assert isinstance (features_file , Path )
456- features_xml_path = self .workdir / "features.xml"
457- assert features_xml_path .exists ()
456+ assert features_file .exists ()
458457
459458 @pytest .mark .uses_test_server ()
460459 def test__get_dataset_qualities (self ):
461- qualities = _get_dataset_qualities_file (self . workdir , 2 )
460+ qualities = _get_dataset_qualities_file (2 )
462461 assert isinstance (qualities , Path )
463- qualities_xml_path = self .workdir / "qualities.xml"
464- assert qualities_xml_path .exists ()
462+ assert qualities .exists ()
465463
466464 @pytest .mark .uses_test_server ()
467465 def test_get_dataset_force_refresh_cache (self ):
@@ -565,7 +563,7 @@ def test__retrieve_class_labels(self):
565563 labels = openml .datasets .get_dataset (2 ).retrieve_class_labels (
566564 target_name = "product-type" ,
567565 )
568- assert labels == ["C" , "H " , "G " ]
566+ assert labels == ["C" , "G " , "H " ]
569567
570568 # Test workaround for string-typed class labels
571569 custom_ds = openml .datasets .get_dataset (2 )
0 commit comments