Skip to content

Commit 9aca22b

Browse files
committed
test: enable more tests for random numbers
1 parent 18639cf commit 9aca22b

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

tests/test_random.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,6 @@ def test_poisson():
823823

824824
# Discard normally emits a warning for Poisson
825825
p2 = galsim.PoissonDeviate(testseed, mean=pMean)
826-
# FIXME: galsim raises
827826
if is_jax_galsim():
828827
# jax always discards reliably
829828
p2.discard(nvals)
@@ -2148,13 +2147,8 @@ def test_permute():
21482147
assert my_list_copy[ind_list[ind]] == my_list[ind]
21492148

21502149
# permute with no lists should raise TypeError
2151-
# jax galsim does not raise
2152-
# FIXME: galsim raises
2153-
if is_jax_galsim():
2154-
pass
2155-
else:
2156-
with assert_raises(TypeError):
2157-
galsim.random.permute(312)
2150+
with assert_raises(TypeError):
2151+
galsim.random.permute(312)
21582152

21592153

21602154
@timer

0 commit comments

Comments
 (0)