Skip to content

Commit

Permalink
fix version test
Browse files Browse the repository at this point in the history
  • Loading branch information
nitzmahone committed Sep 6, 2024
1 parent 05111c5 commit 64df2bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/cffi0/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ def test_doc_version():
assert ("version = '%s'\n" % v[:4]) in content
assert ("release = '%s'\n" % v) in content

def test_setup_version():
def test_pyproject_version():
cffi_root = Path(os.path.dirname(__file__)).parent.parent
p = cffi_root / 'setup.py'
p = cffi_root / 'pyproject.toml'
content = _read(p)
#
v = cffi.__version__.replace('+', '')
assert ("version='%s'" % v) in content
assert f'version = "{v}"' in content

def test_c_version():
cffi_root = Path(os.path.dirname(__file__)).parent.parent
Expand Down

0 comments on commit 64df2bd

Please sign in to comment.