Skip to content

Commit 2c5de7f

Browse files
committed
Python: fix r/l confusion
1 parent 12dfc4a commit 2c5de7f

File tree

1 file changed

+4
-4
lines changed
  • python/ql/test/experimental/dataflow/coverage

1 file changed

+4
-4
lines changed

python/ql/test/experimental/dataflow/coverage/classes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -870,9 +870,9 @@ def __rlshift__(self, other):
870870
OK()
871871
return self
872872

873-
def ftest_rlshift(): # TypeError: unsupported operand type(s) for >>: 'str' and 'With_rlshift'
873+
def test_rlshift():
874874
with_rlshift = With_rlshift()
875-
"" >> with_rlshift
875+
"" << with_rlshift
876876

877877
# object.__rrshift__(self, other)
878878
class With_rrshift:
@@ -881,9 +881,9 @@ def __rrshift__(self, other):
881881
OK()
882882
return self
883883

884-
def ftest_rrshift(): # TypeError: unsupported operand type(s) for <<: 'str' and 'With_rrshift'
884+
def test_rrshift():
885885
with_rrshift = With_rrshift()
886-
"" << with_rrshift
886+
"" >> with_rrshift
887887

888888
# object.__rand__(self, other)
889889
class With_rand:

0 commit comments

Comments
 (0)