Skip to content

Commit

Permalink
FIX: Fix deprecations in tests (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
oyamad authored Dec 17, 2024
1 parent 4f4f964 commit 8e4b9b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quantecon/markov/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,5 +586,5 @@ def test_raises_value_error_simulate_init_out_of_range():

def test_raises_non_homogeneous_state_values():
P = [[0.4, 0.6], [0.2, 0.8]]
state_values = [(0, 1), 2]
state_values = np.array([(0, 1), 2], dtype=object)
assert_raises(ValueError, MarkovChain, P, state_values=state_values)
2 changes: 1 addition & 1 deletion quantecon/tests/test_graph_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def test_raises_value_error_non_sym():

def test_raises_non_homogeneous_node_labels():
adj_matrix = [[1, 0], [0, 1]]
node_labels = [(0, 1), 2]
node_labels = np.array([(0, 1), 2], dtype=object)
assert_raises(ValueError, DiGraph, adj_matrix, node_labels=node_labels)


Expand Down

0 comments on commit 8e4b9b9

Please sign in to comment.