forked from IronLanguages/main
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit max recursion depth by default. Fixes IronLanguages#1192 (...)
- Loading branch information
Kuno Meyer
committed
May 9, 2015
1 parent
31f5c88
commit 29d0b73
Showing
3 changed files
with
43 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# -*- coding: utf-8 -*- | ||
##################################################################################### | ||
# | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# | ||
# This source code is subject to terms and conditions of the Apache License, Version 2.0. A | ||
# copy of the license can be found in the License.html file at the root of this distribution. If | ||
# you cannot locate the Apache License, Version 2.0, please send an email to | ||
# [email protected]. By using this source code in any fashion, you are agreeing to be bound | ||
# by the terms of the Apache License, Version 2.0. | ||
# | ||
# You must not remove this notice, or any other, from this software. | ||
# | ||
# | ||
##################################################################################### | ||
|
||
## | ||
## Test builtin sys module | ||
## | ||
|
||
import sys | ||
from iptest.assert_util import * | ||
|
||
def test_recursionlimit_default(): | ||
# we don't care the exact value, but recursion should be limited by default | ||
Assert(sys.getrecursionlimit() < 10000) | ||
|
||
run_test(__name__) |
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