Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion testtools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
# This will fail with LookupError if the package is not installed in
# editable mode or if Git is not installed.
version = get_version(root="..", relative_to=__file__)
__version__ = tuple(version.split("."))
__version__ = tuple([int(v) if v.isdigit() else v for v in version.split(".")])
except (ImportError, LookupError):
# As a fallback, use the version that is hard-coded in the file.
try:
Expand Down