diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-03-21 09:16:35 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-03-21 09:16:35 -0500 |
commit | 8b96f32aa8d8acd501878ad00029deffc6fdd0bb (patch) | |
tree | 12c989f2716e70ca7e7581c09ced0e2da50a08ce /test_six.py | |
parent | bfc3f2cddce2cf5aad86f8006d457701342f7e6e (diff) | |
download | six-git-8b96f32aa8d8acd501878ad00029deffc6fdd0bb.tar.gz |
improve performance of int2byte on python 3 (fixes #122)
Diffstat (limited to 'test_six.py')
-rw-r--r-- | test_six.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test_six.py b/test_six.py index 060a966..3e57f49 100644 --- a/test_six.py +++ b/test_six.py @@ -511,7 +511,7 @@ def test_unichr(): def test_int2byte(): assert six.int2byte(3) == six.b("\x03") - py.test.raises((OverflowError, ValueError), six.int2byte, 256) + py.test.raises(Exception, six.int2byte, 256) def test_byte2int(): |