File: remove_version_test

package info (click to toggle)
python-iso639 2025.2.18-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 560 kB
  • sloc: python: 456; makefile: 3
file content (27 lines) | stat: -rw-r--r-- 1,083 bytes parent folder | download
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(