From f7c82c638ee0587d2d8697cda26b18002d7621ce Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 8 Jun 2018 17:42:21 +0200 Subject: Fix failing versioninfo_test when the version is not a pre-release one The test used to fail when pre-release version parts are empty (aka there is no "beta1" or "alpha2"). Make sure to always include at least an empty string when those version parts are not set, and adjust the test accordintly to check for a string. Change-Id: Ia30bb99de7f122456e132516346df4e3c0a1fa94 Reviewed-by: Christian Tismer --- sources/pyside2/PySide2/__init__.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/pyside2/PySide2/__init__.py.in') diff --git a/sources/pyside2/PySide2/__init__.py.in b/sources/pyside2/PySide2/__init__.py.in index 19425c347..ab50ef776 100644 --- a/sources/pyside2/PySide2/__init__.py.in +++ b/sources/pyside2/PySide2/__init__.py.in @@ -2,7 +2,7 @@ __all__ = list("Qt" + body for body in "@all_module_shortnames@" .split(";")) __version__ = "@FINAL_PACKAGE_VERSION@" -__version_info__ = (@BINDING_API_MAJOR_VERSION@, @BINDING_API_MINOR_VERSION@, @BINDING_API_MICRO_VERSION@, "@BINDING_API_PRE_RELEASE_VERSION_TYPE@", @BINDING_API_PRE_RELEASE_VERSION@) +__version_info__ = (@BINDING_API_MAJOR_VERSION@, @BINDING_API_MINOR_VERSION@, @BINDING_API_MICRO_VERSION@, "@BINDING_API_PRE_RELEASE_VERSION_TYPE@", "@BINDING_API_PRE_RELEASE_VERSION@") @PYSIDE_BUILD_DATE@ @PYSIDE_BUILD_COMMIT_DATE@ -- cgit v1.2.3