Commit Graph

8 Commits

Author SHA1 Message Date
Calen Pennington
1db6a12ead assertWarns is only for python >= 3.2 (#618) 2016-10-18 12:23:19 -07:00
Alvaro Caceres
43fee3bc72 Declare 2.7 unittest's private util module (#526) 2016-09-09 06:30:58 -07:00
Matthias Kramm
044d11f9ee clean up unittest.py (#509)
* clean up unittest.py

Remove duplicates, adjust wrapping.

* also remove unittest from pytype blacklist
2016-08-31 07:27:53 -07:00
Alvaro Caceres
746f4db989 Change constants to type-equivalent versions (#392)
* Change constants to type-equivalent versions

For pytype support.

" = object()" -> " = ..."
Non-zero ints -> 0

* Drop changes to typing and __builtin__
2016-07-25 13:03:42 -07:00
Philip House
4a79dec6ba adding type-specific assertEqual cases (#315)
Adding support for type-specific equality methods (see https://docs.python.org/2.7/library/unittest.html?highlight=assertlistequals#unittest.TestCase.addTypeEqualityFunc) in the unittest stub for both 2.7/3. As requested by @gvanrossum in #308
2016-06-28 08:12:27 -07:00
Philip House
d2db605008 fixes #131 (#308) 2016-06-21 08:16:24 -07:00
Tim Abbott
8af7ece855 Port unittest stub from python 3 to python 2.7.
I did this by taking the python 3 stub, and then reading a diff of
unittest.py between python 2 and python 3 and correcting the
differences.
2016-01-27 16:35:39 -08:00
Ben Longbons
56fe787c74 Update a bunch of stubs 2015-10-19 20:02:10 -07:00