Jeong YunWon
239495f259
Fix testutils.assert_* and pow
2019-10-14 10:48:19 +09:00
Jeong YunWon
758073db07
Add _msg back to assert_raises
2019-09-17 18:52:16 +09:00
Jeong YunWon
dc8057a1c2
Refactor snippets/testutil
2019-09-17 17:37:24 +09:00
Jeong YunWon
785d19a46e
unittest compatible assertRaises
2019-08-19 16:26:00 +09:00
Maxim Kurnikov
848714e18e
save passed object into the first .args parameter for dict/mappingproxy KeyError
2019-06-26 23:40:24 +03:00
Seo Sanghyeon
d3966af25d
Test all and any
2019-05-09 15:54:07 +09:00
Jeong YunWon
0d891cba2c
Temporary fix to assertRaises and assert_raises prints errors
2019-05-01 12:07:01 +09:00
ben
c77b1f3cf5
Fix bug with __getattr__
2019-03-20 19:56:25 +13:00
Aviv Palivoda
b530733c1a
Add assertRaises context manager to testutils
2019-02-23 13:11:26 +02:00
Adam Gutglick
999ca431d5
Fixed typo.
2019-02-21 16:03:07 -05:00
Adam Gutglick
365680c272
Changed to syntax RustPython supports.
2019-02-21 15:55:18 -05:00
Adam Gutglick
81a9e6984d
Changed syntax in testutils.py that is introduced in 3.6 to a backwards compatible version.
2019-02-21 14:47:36 -05:00
Joey Hain
47e95486f0
Reuse and improve ergonomics of assert_raises utility
...
- Move assert_raises to testutils
- Add optional message argument, with reasonable default
- Reverse order of expr and exception type for readability
- Lambda argument no longer takes parameter
- Convert applicable snippets to use assert_raises
2019-02-16 09:32:42 -08:00