Skip to content

Commit 730c346

Browse files
committed
Statistics: Add warning to ensure removal of patch for scipy.stats.mode
1 parent b6ff30d commit 730c346

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Orange/tests/test_statistics.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,3 +573,16 @@ def test_nanunique_ignores_nans_in_counts(self, array):
573573
expected = [2, 6, 2, 1, 2, 1, 1, 1]
574574

575575
np.testing.assert_equal(nanunique(x, return_counts=True)[1], expected)
576+
577+
578+
class TestNanModeAppVeyor(unittest.TestCase):
579+
def test_appveyour_still_not_onscipy_1_2_0(self):
580+
import scipy
581+
from distutils.version import StrictVersion
582+
import os
583+
584+
if os.getenv("APPVEYOR") and \
585+
StrictVersion(scipy.__version__) >= StrictVersion("1.2.0"):
586+
self.fail("Appveyor now uses Scipy 1.2.0; revert changes in "
587+
"the last three commits (bde2cbe, 7163448, ab0f31d) "
588+
"of gh-3480. Then, remove this test.")

0 commit comments

Comments
 (0)