File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1515import functools
1616import os
1717import pickle
18+ import sys
1819from argparse import Namespace
1920from dataclasses import dataclass
2021from enum import Enum
4344 from omegaconf import Container , OmegaConf
4445 from omegaconf .dictconfig import DictConfig
4546
47+ _PYTHON_GREATER_EQUAL_3_9_0 = (sys .version_info .major , sys .version_info .minor ) >= (3 , 9 )
48+
4649
4750class SaveHparamsModel (BoringModel ):
4851 """Tests that a model can take an object."""
@@ -697,6 +700,14 @@ def test_model_with_fsspec_as_parameter(tmpdir):
697700 trainer .test ()
698701
699702
703+ @pytest .mark .xfail (
704+ # AttributeError: 'OrphanPath' object has no attribute 'exists'
705+ # Issue with `importlib_resources>=6.2.0`
706+ raises = AttributeError ,
707+ condition = (not _PYTHON_GREATER_EQUAL_3_9_0 ),
708+ reason = "Issue with `importlib_resources`" ,
709+ strict = False ,
710+ )
700711@pytest .mark .skipif (RequirementCache ("hydra-core<1.1" ), reason = "Requires Hydra's Compose API" )
701712def test_model_save_hyper_parameters_interpolation_with_hydra (tmpdir ):
702713 """This test relies on configuration saved under tests/models/conf/config.yaml."""
Original file line number Diff line number Diff line change @@ -1534,6 +1534,13 @@ def test_comet_logger_init_args():
15341534 )
15351535
15361536
1537+ @pytest .mark .xfail (
1538+ # Only on Windows: TypeError: 'NoneType' object is not subscriptable
1539+ raises = TypeError ,
1540+ condition = (sys .platform == "win32" ),
1541+ strict = False ,
1542+ reason = "TypeError on Windows when parsing" ,
1543+ )
15371544def test_neptune_logger_init_args ():
15381545 _test_logger_init_args (
15391546 "NeptuneLogger" ,
You can’t perform that action at this time.
0 commit comments