-
-
Notifications
You must be signed in to change notification settings - Fork 16.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip template leak test when not CPython2.7, #452.
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,9 +72,12 @@ def fire(): | |
# Trigger caches | ||
fire() | ||
|
||
with self.assert_no_leak(): | ||
for x in xrange(10): | ||
fire() | ||
# This test only works on CPython 2.7. | ||
if sys.version_info >= (2, 7) and \ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
redian
Contributor
|
||
not hasattr(sys, 'pypy_translation_info'): | ||
with self.assert_no_leak(): | ||
for x in xrange(10): | ||
fire() | ||
|
||
|
||
def suite(): | ||
|
1 comment
on commit 2262ce4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is that the test is too specific to Python implementation.
Hello @rduplain the test fails for me using cpython 2.7.4.
Would it be sensible to change your if statement? to:
if sys.version_info >= (2, 7) and hasattr(sys, 'pypy_translation_info'):
Thanks