diff options
author | 2017-05-17 20:57:42 +0200 | |
---|---|---|
committer | 2017-05-17 22:51:09 +0200 | |
commit | 2158b8709bfd4f1e4a67bf18367bf33f117764a5 (patch) | |
tree | 8a34f081aa4b35b6bb3d16937f2993063875ab82 /dev-python/pyprof2calltree/files | |
parent | dev-lang/php: Version bump for 7.0.19 (diff) | |
download | gentoo-2158b8709bfd4f1e4a67bf18367bf33f117764a5.tar.gz gentoo-2158b8709bfd4f1e4a67bf18367bf33f117764a5.tar.bz2 gentoo-2158b8709bfd4f1e4a67bf18367bf33f117764a5.zip |
dev-python/pyprof2calltree: Bump to 1.4.0
Diffstat (limited to 'dev-python/pyprof2calltree/files')
-rw-r--r-- | dev-python/pyprof2calltree/files/pyprof2calltree-1.4.0-py3-test.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-python/pyprof2calltree/files/pyprof2calltree-1.4.0-py3-test.patch b/dev-python/pyprof2calltree/files/pyprof2calltree-1.4.0-py3-test.patch new file mode 100644 index 000000000000..a91818fca60c --- /dev/null +++ b/dev-python/pyprof2calltree/files/pyprof2calltree-1.4.0-py3-test.patch @@ -0,0 +1,30 @@ +From 582eeeaa930639ccfe9b789b057f170824edd73a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 17 May 2017 20:53:29 +0200 +Subject: [PATCH] tests: Fix StringIO import for Python 3 + +Python 3 no longer provides a 'cStringIO' module. Use StringIO from 'io' +module instead. +--- + tests/test_integration.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/tests/test_integration.py b/tests/test_integration.py +index e6f432c..cf02a4f 100644 +--- a/tests/test_integration.py ++++ b/tests/test_integration.py +@@ -3,7 +3,10 @@ import pstats + import unittest + + from .profile_code import top, expected_output +-from cStringIO import StringIO ++try: ++ from cStringIO import StringIO ++except ImportError: ++ from io import StringIO + from pyprof2calltree import CalltreeConverter + + class MockTimeProfile(cProfile.Profile): +-- +2.13.0 + |