Skip to content

Commit

Permalink
Fixed mod operator and implemented in-place or operator
Browse files Browse the repository at this point in the history
Signed-off-by: Jenna Hight <[email protected]>
  • Loading branch information
jennahight committed May 29, 2017
1 parent 8e500ae commit 700bd9b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion batavia/types/Tuple.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ Tuple.prototype.__ixor__ = function(other) {
}

Tuple.prototype.__ior__ = function(other) {
throw new exceptions.NotImplementedError.$pyclass('Tuple.__ior__ has not been implemented')
throw new exceptions.TypeError.$pyclass("unsupported operand type(s) for |=: 'tuple' and '" + type_name(other) + "'")
}

/**************************************************
Expand Down
18 changes: 0 additions & 18 deletions tests/datatypes/test_tuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,24 +185,6 @@ class InplaceTupleOperationTests(InplaceOperationTestCase, TranspileTestCase):

not_implemented = [

'test_or_bool',
'test_or_bytearray',
'test_or_bytes',
'test_or_class',
'test_or_complex',
'test_or_dict',
'test_or_float',
'test_or_frozenset',
'test_or_int',
'test_or_list',
'test_or_None',
'test_or_NotImplemented',
'test_or_range',
'test_or_set',
'test_or_slice',
'test_or_str',
'test_or_tuple',

'test_rshift_bool',
'test_rshift_bytearray',
'test_rshift_bytes',
Expand Down

0 comments on commit 700bd9b

Please sign in to comment.