Created
October 5, 2016 06:06
-
-
Save davidfstr/628b1d885e6fb6b8159655a37d2cb628 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| $ python3 runtests.py mypy.test.testsemanal | |
| PARALLEL 2 | |
| SUMMARY 3 tasks selected | |
| passed 2, failed 1, pending 0; running 0 | |
| FAILURE #0 run unit-test mypy.test.testsemanal | |
| Expected: | |
| ... | |
| ImportFrom:1(mypy.typing, [TypedDict]) | |
| AssignmentStmt:2( | |
| NameExpr(Point* [__main__.Point]) | |
| TypedDictExpr:2(Point))) | |
| Actual: | |
| ... | |
| ImportFrom:1(mypy.typing, [TypedDict]) | |
| AssignmentStmt:2( | |
| NameExpr(Point* [__main__.Point]) | |
| TypedDictExpr:2(Point))) | |
| MypyFile:1( (diff) | |
| /Users/davidf/Projects/mypy/mypy/typing.py (diff) | |
| ExpressionStmt:1( (diff) | |
| StrExpr(The "mypy.typing" module defines experimental extensions to the standard\u000a"typing" module that is supported by the mypy typechecker.\u000a)) (diff) | |
| ImportFrom:5(typing, [cast, Dict, Type, TypeVar]) (diff) | |
| AssignmentStmt:8( (diff) | |
| NameExpr(_T* [mypy.typing._T]) (diff) | |
| TypeVarExpr:8()) (diff) | |
| FuncDef:11( (diff) | |
| TypedDict (diff) | |
| Args( (diff) | |
| Var(typename) (diff) | |
| Var(fields)) (diff) | |
| def [_T] (typename: builtins.str, fields: builtins.dict[builtins.str, Type[_T`-1]]) -> Type[builtins.dict] (diff) | |
| Block:11( (diff) | |
| ExpressionStmt:12( (diff) | |
| StrExpr(TypedDict creates a dictionary type that expects all of its\u000a instances to have a certain common set of keys, with each key\u000a associated with a value of a consistent type. This expectation\u000a is not checked at runtime but is only enforced by typecheckers.\u000a )) (diff) | |
| FuncDef:17( (diff) | |
| new_dict (diff) | |
| VarArg( (diff) | |
| Var(args)) (diff) | |
| DictVarArg( (diff) | |
| Var(kwargs)) (diff) | |
| Block:17( (diff) | |
| ReturnStmt:18( (diff) | |
| CallExpr:18( (diff) | |
| NameExpr(dict [builtins.dict]) (diff) | |
| Args( (diff) | |
| NameExpr(args [l])) (diff) | |
| VarArg (diff) | |
| DictVarArg( (diff) | |
| NameExpr(kwargs [l])))))) (diff) | |
| AssignmentStmt:20( (diff) | |
| MemberExpr:20( (diff) | |
| NameExpr(new_dict [l]) (diff) | |
| __name__) (diff) | |
| NameExpr(typename [l])) (diff) | |
| AssignmentStmt:21( (diff) | |
| MemberExpr:21( (diff) | |
| NameExpr(new_dict [l]) (diff) | |
| __supertype__) (diff) | |
| NameExpr(dict [builtins.dict])) (diff) | |
| ReturnStmt:22( (diff) | |
| CastExpr:22( (diff) | |
| NameExpr(new_dict [l]) (diff) | |
| Type[builtins.dict])))) (diff) | |
| IgnoredLines(20, 21)) (diff) | |
| Traceback (most recent call last): | |
| File "/Users/davidf/Projects/mypy/mypy/test/data.py", line 185, in run | |
| self.perform(self) | |
| File "/Users/davidf/Projects/mypy/mypy/test/testsemanal.py", line 92, in test_semanal | |
| testcase.line)) | |
| File "/Users/davidf/Projects/mypy/mypy/test/helpers.py", line 85, in assert_string_arrays_equal | |
| raise AssertionFailure(msg) | |
| AssertionFailure: Invalid semantic analyzer output (/Users/davidf/Projects/mypy/test-data/unit/semanal-typeddict.test, line 3) | |
| test_testsemanal_SemAnalSuite.testCanDefineTypedDictType failed | |
| 1/475 test cases failed. | |
| *** FAILURE *** | |
| SUMMARY 1/3 tasks and 1/477 tests failed | |
| FAILURE run unit-test mypy.test.testsemanal | |
| SUMMARY 1/3 tasks and 1/477 tests failed | |
| *** FAILURE *** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment