Chomba Ng'ang'a
fd27cde24d
Update asserts to use more generic ones
2017-08-09 12:52:10 +02:00
Chomba Ng'ang'a
4ca61a2051
Update deprecated test aliases
...
- change ``failIf`` to ``assertFalse``
- change ``asertEquals`` to ``assertEqual``
- change ``assert_`` to ``assertTrue``
https://docs.python.org/2/library/unittest.html#deprecated-aliases
2017-08-09 12:52:10 +02:00
Konstantin Lopuhin
7c67047e77
Fix get_func_args tests under PyPy
...
On CPython get_func_args does not work correctly for built-in
methods.
2017-06-15 13:07:59 +03:00
Konstantin Lopuhin
5abb70c8d7
Fix test_weakkeycache on PyPy: run gc.collect()
...
One gc.collect() seems to be enough, but it's more reliable
to run it several times (at most 100), until all objects are collected.
2017-06-15 13:06:30 +03:00
nyov
e8ca467572
Rename isbinarytext function to binary_is_text for clarity
...
Closes #1389
2016-03-30 15:44:15 +00:00
Jakob de Maeyer
f249b309ab
Move scrapy.utils.conf.remove_none_values to s.u.python.without_none_values
2015-10-27 12:43:33 +01:00
Mikhail Korobov
a7b4a3e7f9
cleanup
...
* run test_utils_python in Python 3;
* make tests for 'errors' argument more explicit
* add missing test_ prefix utf_16_strings_contain_null_bytes;
* cleanup test names.
2015-07-23 20:03:33 +02:00
Mikhail Korobov
4073498652
port utils.python
...
* stringify_dict is deprecated
* is_writable is deprecated
* setattr_default is deprecated
* get_spec is untested
* re_rsearch is untested
* retry_on_eintr is untested
2015-07-23 18:33:56 +02:00
Mikhail Korobov
41bcae5d00
TST fix to_bytes and to_unicode tests in Python 3.x
2015-07-23 17:35:23 +02:00
Mikhail Korobov
61cd27e5c7
Rename unicode_to_str and str_to_unicode method. Fixes GH-778.
2015-07-23 15:00:06 +02:00
Mikhail Korobov
628a8d8a15
TST modernize some of the asserts
2014-08-01 23:44:23 +06:00
Daniel Graña
242c08553f
move tests under root dir
2014-07-30 19:45:08 -03:00