문제

sometimes, it is better to temporarily use a deprecated method than to create several branches of a project to support several versions of Pharo. At least, that's what I sometimes do. However, calling a deprecated method makes my unit-tests fail in Pharo 3.0.

Is there anything I can do?

도움이 되었습니까?

해결책

Shouldn't it be sufficient to switch off deprecation warnings? I think the reason is that opening the deprecation warning is based on an exception that the test case catches.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top