Testing testXMMextractorpy ... FAILED
Message: will run ./testXMMextractorpy for no longer than 600 seconds.
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-8.1.1, pluggy-1.4.0 -- /sasbuild/tools/python-3.10.6/bin/python3
cachedir: .pytest_cache
rootdir: /sasbuild/build/sas/packages/XMMextractorpy
plugins: anyio-4.3.0
collecting ... collected 4 items

test_RunCifbuild.py::test_run_odfingest PASSED                           [ 25%]
test_pyOAL.py::test_load_class FAILED                                    [ 50%]
test_pyOAL.py::test_brancher FAILED                                      [ 75%]
test_pyOAL.py::test_create_xml FAILED                                    [100%]

=================================== FAILURES ===================================
_______________________________ test_load_class ________________________________

    def test_load_class():
>       obs = pyOAL.Observation('0505720401.xml')

test_pyOAL.py:27: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../lib/python/pysas/pyOAL/pyOAL.py:404: in __init__
    self.obs_start, self.obs_end, self.obs_duration = xmm_tools.ODF_times(os.environ['SAS_ODF'])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

SAS_file = '/sasbuild/build/sas/lib/testodf/scisimsimple'

    def ODF_times(SAS_file = ''):
        '''
        Searches for the start time and the end time of the observation.
    
        Args:
            SAS_file: (optional) a SAS file. By default it will search for one
            in the main directory for XMMExtractor.
    
        Output:
            (start time, end time, duration)
        '''
    
        if SAS_file == '':
            SAS_file = glob.glob(XMMExtractor.main_dir + '/*.SAS')[0]
    
        t_start = 0
        t_end = 0
        duration = 0
    
>       with open(SAS_file, 'r') as f:
E       IsADirectoryError: [Errno 21] Is a directory: '/sasbuild/build/sas/lib/testodf/scisimsimple'

../../../lib/python/pysas/XMMextractor_tools/XMMextractor_tools.py:59: IsADirectoryError
________________________________ test_brancher _________________________________

    def test_brancher():
>       obs = pyOAL.Observation('0505720401.xml')

test_pyOAL.py:32: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../lib/python/pysas/pyOAL/pyOAL.py:404: in __init__
    self.obs_start, self.obs_end, self.obs_duration = xmm_tools.ODF_times(os.environ['SAS_ODF'])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

SAS_file = '/sasbuild/build/sas/lib/testodf/scisimsimple'

    def ODF_times(SAS_file = ''):
        '''
        Searches for the start time and the end time of the observation.
    
        Args:
            SAS_file: (optional) a SAS file. By default it will search for one
            in the main directory for XMMExtractor.
    
        Output:
            (start time, end time, duration)
        '''
    
        if SAS_file == '':
            SAS_file = glob.glob(XMMExtractor.main_dir + '/*.SAS')[0]
    
        t_start = 0
        t_end = 0
        duration = 0
    
>       with open(SAS_file, 'r') as f:
E       IsADirectoryError: [Errno 21] Is a directory: '/sasbuild/build/sas/lib/testodf/scisimsimple'

../../../lib/python/pysas/XMMextractor_tools/XMMextractor_tools.py:59: IsADirectoryError
_______________________________ test_create_xml ________________________________

    def test_create_xml():
>       obs = pyOAL.Observation('0505720401.xml')

test_pyOAL.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../lib/python/pysas/pyOAL/pyOAL.py:404: in __init__
    self.obs_start, self.obs_end, self.obs_duration = xmm_tools.ODF_times(os.environ['SAS_ODF'])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

SAS_file = '/sasbuild/build/sas/lib/testodf/scisimsimple'

    def ODF_times(SAS_file = ''):
        '''
        Searches for the start time and the end time of the observation.
    
        Args:
            SAS_file: (optional) a SAS file. By default it will search for one
            in the main directory for XMMExtractor.
    
        Output:
            (start time, end time, duration)
        '''
    
        if SAS_file == '':
            SAS_file = glob.glob(XMMExtractor.main_dir + '/*.SAS')[0]
    
        t_start = 0
        t_end = 0
        duration = 0
    
>       with open(SAS_file, 'r') as f:
E       IsADirectoryError: [Errno 21] Is a directory: '/sasbuild/build/sas/lib/testodf/scisimsimple'

../../../lib/python/pysas/XMMextractor_tools/XMMextractor_tools.py:59: IsADirectoryError
=========================== short test summary info ============================
FAILED test_pyOAL.py::test_load_class - IsADirectoryError: [Errno 21] Is a di...
FAILED test_pyOAL.py::test_brancher - IsADirectoryError: [Errno 21] Is a dire...
FAILED test_pyOAL.py::test_create_xml - IsADirectoryError: [Errno 21] Is a di...
========================= 3 failed, 1 passed in 2.14s ==========================
Error while running ./testXMMextractorpy
ERROR: one of the tests failed
