Fix test_gi.TestProjectVersion.test_version_str()

In this test case we only do a string comparison, not a proper "by version
component" numerical one. So relax the test to also work with 3.10.