Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09b9511

Browse files
committed
Fix error msg test
1 parent 7c0f944 commit 09b9511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keras/backend/tests/device_scope_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_jax_device_scope(self):
5656

5757
@pytest.mark.skipif(backend.backend() != "jax", reason="jax only")
5858
def test_invalid_jax_device(self):
59-
with self.assertRaisesRegex(ValueError, "Received: device='123'"):
59+
with self.assertRaisesRegex(ValueError, "Received: device_name='123'"):
6060
backend.device_scope(123).__enter__()
6161

6262
@pytest.mark.skipif(backend.backend() != "torch", reason="torch only")

0 commit comments

Comments
 (0)