-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
4,713 additions
and
14 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,13 @@ | ||
import pytest | ||
|
||
|
||
@pytest.hookimpl(tryfirst=True, hookwrapper=True) | ||
def pytest_runtest_makereport(item, call): | ||
# execute all other hooks to obtain the report object | ||
outcome = yield | ||
rep = outcome.get_result() | ||
|
||
# set a report attribute for each phase of a call, which can | ||
# be "setup", "call", "teardown" | ||
|
||
setattr(item, "rep_" + rep.when, rep) |
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,343 @@ | ||
[ | ||
[ | ||
"test_binary_operators", | ||
[ | ||
[ | ||
"+", | ||
true | ||
], | ||
[ | ||
"-", | ||
true | ||
], | ||
[ | ||
"/", | ||
true | ||
], | ||
[ | ||
"//", | ||
true | ||
], | ||
[ | ||
"*", | ||
true | ||
], | ||
[ | ||
"%", | ||
true | ||
], | ||
[ | ||
"**", | ||
true | ||
], | ||
[ | ||
"<<", | ||
true | ||
], | ||
[ | ||
">>", | ||
true | ||
], | ||
[ | ||
"\\|", | ||
true | ||
], | ||
[ | ||
"&", | ||
true | ||
], | ||
[ | ||
"^", | ||
true | ||
] | ||
] | ||
], | ||
[ | ||
"test_call", | ||
[ | ||
[ | ||
"call", | ||
true | ||
] | ||
] | ||
], | ||
[ | ||
"test_compare_ops", | ||
[ | ||
[ | ||
"<", | ||
true | ||
], | ||
[ | ||
"<=", | ||
true | ||
], | ||
[ | ||
">", | ||
true | ||
], | ||
[ | ||
">=", | ||
true | ||
], | ||
[ | ||
"!=", | ||
true | ||
], | ||
[ | ||
"==", | ||
true | ||
], | ||
[ | ||
"in", | ||
true | ||
], | ||
[ | ||
"not in", | ||
true | ||
], | ||
[ | ||
"assert 5<t,\"msg\"", | ||
false | ||
], | ||
[ | ||
"assert 5<t", | ||
false | ||
], | ||
[ | ||
"if 5<t:", | ||
true | ||
], | ||
[ | ||
"5<t<6", | ||
false | ||
], | ||
[ | ||
"assert 5<t<6", | ||
false | ||
], | ||
[ | ||
"if 5<t<6:", | ||
false | ||
], | ||
[ | ||
"if 5<t<6 or 8<t<9:", | ||
false | ||
] | ||
] | ||
], | ||
[ | ||
"test_delattr", | ||
[ | ||
[ | ||
"del obj.attr", | ||
false | ||
], | ||
[ | ||
"delattr(obj,\"attr\")", | ||
true | ||
] | ||
] | ||
], | ||
[ | ||
"test_delitem", | ||
[ | ||
[ | ||
"del obj[index]", | ||
false | ||
], | ||
[ | ||
"del obj[start:end]", | ||
false | ||
] | ||
] | ||
], | ||
[ | ||
"test_format_string", | ||
[] | ||
], | ||
[ | ||
"test_getattr", | ||
[ | ||
[ | ||
"obj.attr", | ||
true | ||
], | ||
[ | ||
"getattr(obj,\"attr\")", | ||
true | ||
] | ||
] | ||
], | ||
[ | ||
"test_getitem", | ||
[ | ||
[ | ||
"obj[index]", | ||
true | ||
], | ||
[ | ||
"obj[start:end]", | ||
true | ||
] | ||
] | ||
], | ||
[ | ||
"test_inplace_binary_operators", | ||
[ | ||
[ | ||
"+=", | ||
false | ||
], | ||
[ | ||
"-=", | ||
false | ||
], | ||
[ | ||
"/=", | ||
false | ||
], | ||
[ | ||
"//=", | ||
false | ||
], | ||
[ | ||
"*=", | ||
false | ||
], | ||
[ | ||
"%=", | ||
false | ||
], | ||
[ | ||
"**=", | ||
false | ||
], | ||
[ | ||
"<<=", | ||
false | ||
], | ||
[ | ||
">>=", | ||
false | ||
], | ||
[ | ||
"\\|=", | ||
false | ||
], | ||
[ | ||
"&=", | ||
false | ||
], | ||
[ | ||
"^=", | ||
false | ||
] | ||
] | ||
], | ||
[ | ||
"test_known_issues", | ||
[ | ||
[ | ||
"same generator", | ||
true | ||
] | ||
] | ||
], | ||
[ | ||
"test_reverse_binary_operators", | ||
[ | ||
[ | ||
"+", | ||
true | ||
], | ||
[ | ||
"-", | ||
true | ||
], | ||
[ | ||
"/", | ||
true | ||
], | ||
[ | ||
"//", | ||
true | ||
], | ||
[ | ||
"*", | ||
true | ||
], | ||
[ | ||
"%", | ||
true | ||
], | ||
[ | ||
"**", | ||
true | ||
], | ||
[ | ||
"<<", | ||
true | ||
], | ||
[ | ||
">>", | ||
true | ||
], | ||
[ | ||
"\\|", | ||
true | ||
], | ||
[ | ||
"&", | ||
true | ||
], | ||
[ | ||
"^", | ||
true | ||
] | ||
] | ||
], | ||
[ | ||
"test_setattr", | ||
[ | ||
[ | ||
"t.attr = 5", | ||
true | ||
], | ||
[ | ||
"t.attr, g.attr= 5, 5", | ||
true | ||
], | ||
[ | ||
"setattr(t,\"attr\",5)", | ||
true | ||
] | ||
] | ||
], | ||
[ | ||
"test_setitem", | ||
[ | ||
[ | ||
"obj[index]=value", | ||
true | ||
], | ||
[ | ||
"obj[start:end]=value", | ||
true | ||
] | ||
] | ||
], | ||
[ | ||
"test_with", | ||
[ | ||
[ | ||
"__enter__", | ||
false | ||
], | ||
[ | ||
"__exit__", | ||
false | ||
] | ||
] | ||
] | ||
] |
Oops, something went wrong.