1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
--- a/tests/test_version_number.py
+++ b/tests/test_version_number.py
@@ -7,24 +7,6 @@
_REPO_DIR = os.path.dirname(os.path.dirname(__file__))
-def test_version_number_match_with_changelog():
- """__version__ and CHANGELOG.md match for the latest version number."""
- changelog = open(os.path.join(_REPO_DIR, "CHANGELOG.md"), encoding="utf-8").read()
- # latest version number in changelog = the 1st occurrence of '[x.y.z]'
- version_in_changelog = (
- re.search(r"\[\d+\.\d+\.\d+\]", changelog).group().strip("[]")
- )
- if "dev" in iso639.__version__:
- # CHANGELOG.md doesn't update the section headings for dev versions,
- # and so iso639.__version__ with "dev" (e.g., "3.1.0dev1")
- # wouldn't match any version headings in CHANGELOG.md.
- return
- assert iso639.__version__ == version_in_changelog, (
- "Make sure both __version__ and CHANGELOG are updated to match the "
- "latest version number"
- )
-
-
def test_no_zero_padding():
version: str = iso639.__version__
assert re.fullmatch(
|