Skip to content

Commit

Permalink
Skip tests against pypower
Browse files Browse the repository at this point in the history
PyPOWER 5.0.0 is broken with recent numpy and unmaintained since Aug 2017.
  • Loading branch information
coroa committed Jun 21, 2018
1 parent d21c635 commit 1595d5c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_lpf_against_pypower.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@
from pypower.api import ppoption, runpf, case30 as case


from pypower.ppver import ppver
from distutils.version import StrictVersion
pypower_version = StrictVersion(ppver()['Version'])

import pandas as pd

import numpy as np
import pytest




@pytest.mark.skipif(pypower_version <= '5.0.0',
reason="PyPOWER 5.0.0 is broken with recent numpy and unmaintained since Aug 2017.")
def test_pypower_case():

#ppopt is a dictionary with the details of the optimization routine to run
Expand Down
6 changes: 6 additions & 0 deletions test/test_pf_against_pypower.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@

from pypower.api import ppoption, runpf, case118 as case

from pypower.ppver import ppver
from distutils.version import StrictVersion
pypower_version = StrictVersion(ppver()['Version'])

import pandas as pd

import numpy as np
import pytest




@pytest.mark.skipif(pypower_version <= '5.0.0',
reason="PyPOWER 5.0.0 is broken with recent numpy and unmaintained since Aug 2017.")
def test_pypower_case():

#ppopt is a dictionary with the details of the optimization routine to run
Expand Down

0 comments on commit 1595d5c

Please sign in to comment.