【发布时间】:2022-01-23 13:05:13
【问题描述】:
我正在为正则表达式的情况而失去理智。 我有一个来自 unittests 的日志文件,并使用正则表达式断言正确的测试已经通过。
日志文件的摘录;
pydicom/pydicom/tests/test_filereader.py::test_read_dicomdir_deprecated PASSED
pydicom/pydicom/tests/test_filereader.py::TestReadDataElement::test_read_SV_explicit_little SKIPPED
pydicom/pydicom/tests/test_filereader.py::TestDSISnumpy::test_IS_numpy_import_error SKIPPED
pydicom/pydicom/tests/test_filereader.py::TestDSISnumpy::test_DS_numpy_import_error SKIPPED
pydicom/pydicom/tests/test_filereader.py::TestDSISnumpy::test_numpy_import_warning SKIPPED
pydicom/pydicom/tests/test_waveform.py::TestHandlerGenerateMultiplex::test_as_raw PASSED
首先,我只对来自pydicom/pydicom/tests/test_filereader.py 的测试感兴趣。这些我可以通过r"pydicom/tests/test_filereader.py.*" 找到。现在,我想对跳过的测试实施负面的后视(我已经审查过这些测试是合法跳过的)。
【问题讨论】: