File: 88f983dcf04b0d0b09cb105943226d186f9f6a8ada3da7c48a1a3a1c0d947995.py

package info (click to toggle)
python-executing 2.2.0-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,860 kB
  • sloc: python: 10,235; sh: 48; makefile: 10
file content (22 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This sample was generated for the following code mutation detected by mutmut:

# --- executing/_position_node_finder.py
# +++ executing/_position_node_finder.py
# @@ -11,7 +11,7 @@
 
 
#  def parents(node: EnhancedAST) -> Iterator[EnhancedAST]:
# -    while True:
# +    while False:
#          if hasattr(node, "parent"):
#              node = node.parent
#              yield node


def __call__(self, function):

    def generator_wrapper(*args, **kwargs):
        try:
            method, incoming = (gen.send, (yield outgoing))
        except Exception as e:
            pass