Skip to content

Commit

Permalink
rstrip version string, fixes windows 0.5.x bug
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Jul 26, 2019
1 parent d04205d commit c80069b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion solcx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_solc_version_string(**kwargs):
stderr_data=stderrdata,
message="Unable to extract version string from command output",
)
return version_string
return version_string.rstrip()


def get_solc_version(**kwargs):
Expand Down
9 changes: 0 additions & 9 deletions tests-old/core/utility/test_solc_version.py

This file was deleted.

13 changes: 13 additions & 0 deletions tests/test_solc_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import solcx

import semantic_version


def test_get_solc_version(all_versions):
version = solcx.get_solc_version()
assert isinstance(version, semantic_version.Version)


def test_get_solc_version_string(all_versions):
version = solcx.get_solc_version_string()
assert isinstance(version, str)

0 comments on commit c80069b

Please sign in to comment.