silx-kit / freesas

Small angle scattering tools ... but unlike most others, free.
MIT License
12 stars 11 forks source link

Issue on windows Python 3.12 only: #95

Open kif opened 2 months ago

kif commented 2 months ago
======================================================================
FAIL: test_collect_files_only_returns_existing_files (freesas.test.test_fitting.TestFitting.test_collect_files_only_returns_existing_files)
Test that collect_files discards strings that do not match an existing file.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\Users\kieffer\workspace\freesas\build\Lib\site-packages\freesas\test\test_fitting.py", line 359, in test_collect_files_only_returns_existing_files
    self.assertEqual(
AssertionError: Lists differ: [] != [WindowsPath('testgood')]

Second list contains 1 additional elements.
First extra element 0:
WindowsPath('testgood')

- []
+ [WindowsPath('testgood')]

======================================================================
SKIPPED: test_get_linesep_returns_n_if_output_is_filestream_on_posix (freesas.test.test_fitting.TestFitting.test_get_linesep_returns_n_if_output_is_filestream_on_posix)
Test that get_linesep() returns
SKIPPED: test_get_linesep_returns_n_if_output_is_stdout_on_posix (freesas.test.test_fitting.TestFitting.test_get_linesep_returns_n_if_output_is_stdout_on_posix)
Test that get_linesep() returns
----------------------------------------------------------------------
Only POSIX
======================================================================
SKIPPED: test_run_guinier_outputs_error_if_file_not_found (freesas.test.test_fitting.TestFitting.test_run_guinier_outputs_error_if_file_not_found)
Test that run_guinier_fit outputs an error if data loading raises OSError
SKIPPED: test_run_guinier_outputs_error_if_file_not_parsable (freesas.test.test_fitting.TestFitting.test_run_guinier_outputs_error_if_file_not_parsable)
Test that run_guinier_fit outputs an error if data loading raises ValueError
----------------------------------------------------------------------
Unreliable
----------------------------------------------------------------------
Ran 109 tests in 69.028s

FAILED (failures=1, skipped=4)
kif commented 2 months ago

Issue related to mocked test ...

kif commented 2 months ago

I skip this test for now ... should be addressed by other means than mocking the operating system calls: it has proven not being robust.