Commit Graph

5 Commits

Author SHA1 Message Date
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