def test_higher_version_preferred_even_when_tag_is_on_top_of_the_tree(self):
        try:
            self.prepare(tag_latest_version=True)
            self.assertEquals((1, 3, 0), compute_version(
                get_git_describe(repository_directory=self.repo, fix_environment=True, accepted_tag_pattern='repo-*')
            ))
        finally:
            rmtree(self.repo)
            os.chdir(self.oldcwd)
As previous test, but some git versions change their output when tagged version is also HEAD
dataset/ETHPy150Open ella/citools/tests/test_versioning.py/TestVersionRetrievingHigherVersion.test_higher_version_preferred_even_when_tag_is_on_top_of_the_tree