Skip to content

Commit 9ba24ed

Browse files
author
Junpeng Lao
authored
Mark xfail for few trace backend tests (#3026)
* Mark xfail for few trace backend tests close #3018 * Make posterior tests more stable cherry picked from c7b43b4 * Mark all sql backend test as xfail under py27 32bit * mark text backend test dtype xfail
1 parent 9898e00 commit 9ba24ed

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pymc3/tests/backend_fixtures.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ def test_get_values_nocombine_burn_keyword(self):
288288
def test_len(self):
289289
assert len(self.mtrace) == self.draws
290290

291+
@pytest.mark.xfail(condition=(theano.config.floatX == "float32"), reason="Fails on float32")
291292
def test_dtypes(self):
292293
for varname in self.test_point.keys():
293294
assert self.expected[0][varname].dtype == \
@@ -492,6 +493,7 @@ def test_chain_length(self):
492493
assert self.mtrace0.nchains == self.mtrace1.nchains
493494
assert len(self.mtrace0) == len(self.mtrace1)
494495

496+
@pytest.mark.xfail(condition=(theano.config.floatX == "float32"), reason="Fails on float32")
495497
def test_dtype(self):
496498
for varname in self.test_point.keys():
497499
assert self.mtrace0.get_values(varname, chains=0).dtype == \

pymc3/tests/test_sqlite_backend.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class TestSQlite0dSampling(bf.SamplingTestCase):
1515
shape = ()
1616

1717

18+
@pytest.mark.xfail(condition=(theano.config.floatX == "float32"), reason="Fails on float32")
1819
class TestSQlite1dSampling(bf.SamplingTestCase):
1920
backend = sqlite.SQLite
2021
name = DBNAME
@@ -35,12 +36,14 @@ class TestSQLite0dSelection(bf.SelectionTestCase):
3536
shape = ()
3637

3738

39+
@pytest.mark.xfail(condition=(theano.config.floatX == "float32"), reason="Fails on float32")
3840
class TestSQLite1dSelection(bf.SelectionTestCase):
3941
backend = sqlite.SQLite
4042
name = DBNAME
4143
shape = 2
4244

4345

46+
@pytest.mark.xfail(condition=(theano.config.floatX == "float32"), reason="Fails on float32")
4447
class TestSQLite2dSelection(bf.SelectionTestCase):
4548
backend = sqlite.SQLite
4649
name = DBNAME

0 commit comments

Comments
 (0)