testLocaleMatcher not skipped on old ICU when run via pytest
Created by: mkszuba
Although testLocaleMatcher does check if the underlying ICU version is at least 65.0 before proceeding, it only only seems to do so when the script in question is run directly. As a result, when I attempted to run the test suite from the upcoming Gentoo ebuild for 2.4.2 on a system with ICU-64.2, which ebuilds call pytest on the unit-test directory rather than invoke individual scripts, I saw errors. The attached patch solves the problem for me. It may or may not make the original version check unnecessary, I haven't tried. pyicu-2.4.2-testLocaleMatcher_pytest_old_icu.txt