commit | a3acea3e07dba03a22dc35ca17ad83baa82e3729 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Fri Sep 05 21:05:05 2014 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Fri Sep 05 21:05:05 2014 +0200 |
tree | 2a2e4f25b0ea350f0d828ce09b86f6dfbd214606 | |
parent | 342fd18f5369863dfa0c44bc1f57476fdde587aa [diff] [blame] |
Issue #22340: Fix Python 3 warnings in Python 2 tests
diff --git a/Lib/test/test_hash.py b/Lib/test/test_hash.py index dec7dcb..c4f7c66 100644 --- a/Lib/test/test_hash.py +++ b/Lib/test/test_hash.py
@@ -215,7 +215,8 @@ repr_ = 'buffer("abc")' def test_empty_string(self): - self.assertEqual(hash(buffer("")), 0) + with test_support.check_py3k_warnings(): + self.assertEqual(hash(buffer("")), 0) class DatetimeTests(HashRandomizationTests): def get_hash_command(self, repr_):