Skip to content

Commit 7409480

Browse files
authored
test(PyProxyHandler): fix tests/js/js2py/object-mutation.simple
1 parent 21fc6f1 commit 7409480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/js/js2py/object-mutation.simple

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ python.exec(pcode);
2020
const fun = python.eval("change_and_return");
2121
const obj2 = fun(obj);
2222

23-
if (obj.a !== 5 && obj2["a"] !== 5)
23+
if (obj.a !== 5 || obj2["a"] !== 5)
2424
{
2525
console.error('Object isn\'t sharing memory.');
2626
throw new Error('Test failed');
2727
}
2828

2929
obj.a = 1000;
3030

31-
if (obj.a !== 1000 && obj2["a"] !== 1000)
31+
if (obj.a !== 1000 || obj2["a"] !== 1000)
3232
{
3333
console.error('Object isn\'t sharing memory.');
3434
throw new Error('Test failed');

0 commit comments

Comments
 (0)