Commit 58a3544 1 parent b32f1d4 commit 58a3544 Copy full SHA for 58a3544
File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
from . import core
2
2
from .core import *
3
- from . import infinity
4
- from . import _config
3
+ from . import infinity , _config
5
4
6
5
__version__ = "unknown"
7
6
try :
8
- from _version import __version__
7
+ from . _version import __version__
9
8
except ImportError :
10
9
# We're running in a tree that doesn't have a _version.py, so we don't know what our version is.
11
10
pass
Original file line number Diff line number Diff line change @@ -30,8 +30,10 @@ def test_config(self):
30
30
def test_version (self ):
31
31
import pycarl
32
32
from distutils .version import StrictVersion
33
- version = StrictVersion (pycarl .carl_version ())
34
- assert version > StrictVersion ("17.07.50" )
33
+ version = StrictVersion (pycarl .__version__ )
34
+ assert version > StrictVersion ("2.0.0" )
35
+ carl_version = StrictVersion (pycarl .carl_version ())
36
+ assert carl_version > StrictVersion ("17.07.50" )
35
37
36
38
def test_pickle (self ):
37
39
import pycarl
You can’t perform that action at this time.
0 commit comments