Skip to content

Commit

Permalink
ModuleNotFoundErrorwo
Browse files Browse the repository at this point in the history
  • Loading branch information
h-suzuki-isp committed Oct 24, 2023
1 parent d5217ae commit fa0de4d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/test/record/test_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
RecordsCppImpl = cpp_impl.RecordsCppImpl
CppImplEnabled = True
except ModuleNotFoundError as e:
if 'GITHUB_ACTION' in os.environ:
# skip cpp_impl tests
# Because caret_analyze does not use caret_analyze_cpp_Impl on github actions.
RecordCppImpl = None
RecordsCppImpl = None
CppImplEnabled = False
else:
raise ModuleNotFoundError(
'Failed to load RecordsCppImpl, ',
'possibly due to missing information in the PYTHONPATH environment variable.') from e
# if 'GITHUB_ACTION' in os.environ:
# # skip cpp_impl tests
# # Because caret_analyze does not use caret_analyze_cpp_Impl on github actions.
# RecordCppImpl = None
# RecordsCppImpl = None
# CppImplEnabled = False
# else:
raise ModuleNotFoundError(
'Failed to load RecordsCppImpl, ',
'possibly due to missing information in the PYTHONPATH environment variable.') from e


def to_cpp_record(record: RecordInterface) -> RecordCppImpl | None:
Expand Down

0 comments on commit fa0de4d

Please sign in to comment.