-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #519 from jerith/jerith/per-method-recursion-guard
Per-method recursion guard
- Loading branch information
Showing
9 changed files
with
81 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
fails:Array#reject returns a new array without elements for which block is true | ||
fails:Array#reject returns self when called on an Array emptied with #shift | ||
fails:Array#reject properly handles recursive arrays | ||
fails:Array#reject does not return subclass instance on Array subclasses | ||
fails:Array#reject does not retain instance variables | ||
fails:Array#reject returns an Enumerator if no block given | ||
fails:Array#reject! returns an Enumerator if no block given |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
fails:Hash#== computes equality for complex recursive hashes | ||
fails:Hash#== computes equality for recursive hashes & arrays | ||
fails:Hash#== compares the values in self to values in other hash | ||
fails:Hash#== compares values with == semantics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
class TestExecutionContext(object): | ||
def test_recursion_guard(self, space): | ||
f = "my_func" | ||
x = object() | ||
y = object() | ||
with space.getexecutioncontext().recursion_guard(x) as in_recursion: | ||
with space.getexecutioncontext().recursion_guard(f, x) as in_recursion: | ||
assert not in_recursion | ||
with space.getexecutioncontext().recursion_guard(y) as ir2: | ||
with space.getexecutioncontext().recursion_guard(f, y) as ir2: | ||
assert not ir2 | ||
with space.getexecutioncontext().recursion_guard(x) as ir3: | ||
with space.getexecutioncontext().recursion_guard(f, x) as ir3: | ||
assert ir3 | ||
with space.getexecutioncontext().recursion_guard(x) as ir3: | ||
with space.getexecutioncontext().recursion_guard(f, x) as ir3: | ||
assert ir3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters