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 15
15
import functools
16
16
import os
17
17
import pickle
18
+ import sys
18
19
from argparse import Namespace
19
20
from dataclasses import dataclass
20
21
from enum import Enum
43
44
from omegaconf import Container , OmegaConf
44
45
from omegaconf .dictconfig import DictConfig
45
46
47
+ _PYTHON_GREATER_EQUAL_3_9_0 = (sys .version_info .major , sys .version_info .minor ) >= (3 , 9 )
48
+
46
49
47
50
class SaveHparamsModel (BoringModel ):
48
51
"""Tests that a model can take an object."""
@@ -697,6 +700,14 @@ def test_model_with_fsspec_as_parameter(tmpdir):
697
700
trainer .test ()
698
701
699
702
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
+ )
700
711
@pytest .mark .skipif (RequirementCache ("hydra-core<1.1" ), reason = "Requires Hydra's Compose API" )
701
712
def test_model_save_hyper_parameters_interpolation_with_hydra (tmpdir ):
702
713
"""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():
1534
1534
)
1535
1535
1536
1536
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
+ )
1537
1544
def test_neptune_logger_init_args ():
1538
1545
_test_logger_init_args (
1539
1546
"NeptuneLogger" ,
You can’t perform that action at this time.
0 commit comments