2025-02-04 04:14:12 +00:00
|
|
|
Index: pytest-profiling-1.8.1/pytest_profiling.py
|
2022-12-09 10:51:24 +00:00
|
|
|
===================================================================
|
2025-02-04 04:14:12 +00:00
|
|
|
--- pytest-profiling-1.8.1.orig/pytest_profiling.py
|
|
|
|
|
+++ pytest-profiling-1.8.1/pytest_profiling.py
|
2024-10-22 06:10:33 +00:00
|
|
|
@@ -10,7 +10,6 @@ import errno
|
2022-12-09 10:51:24 +00:00
|
|
|
from hashlib import md5
|
2024-10-22 06:10:33 +00:00
|
|
|
import subprocess
|
2022-12-09 10:51:24 +00:00
|
|
|
|
|
|
|
|
-import six
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
LARGE_FILENAME_HASH_LEN = 8
|
|
|
|
|
@@ -18,7 +17,7 @@ LARGE_FILENAME_HASH_LEN = 8
|
|
|
|
|
|
|
|
|
|
def clean_filename(s):
|
2024-10-22 06:10:33 +00:00
|
|
|
forbidden_chars = set(r'/?<>\:*|"')
|
2022-12-09 10:51:24 +00:00
|
|
|
- return six.text_type("".join(c if c not in forbidden_chars and ord(c) < 127 else '_'
|
|
|
|
|
+ return str("".join(c if c not in forbidden_chars and ord(c) < 127 else '_'
|
|
|
|
|
for c in s))
|
|
|
|
|
|
|
|
|
|
|
2025-02-04 04:14:12 +00:00
|
|
|
Index: pytest-profiling-1.8.1/tests/unit/test_profile.py
|
2022-12-09 10:51:24 +00:00
|
|
|
===================================================================
|
2025-02-04 04:14:12 +00:00
|
|
|
--- pytest-profiling-1.8.1.orig/tests/unit/test_profile.py
|
|
|
|
|
+++ pytest-profiling-1.8.1/tests/unit/test_profile.py
|
2024-10-22 06:10:33 +00:00
|
|
|
@@ -3,11 +3,11 @@
|
2022-12-09 10:51:24 +00:00
|
|
|
# coverage, so force it to be reloaded within this test unit under coverage
|
|
|
|
|
|
2024-10-22 06:10:33 +00:00
|
|
|
import os.path
|
2022-12-09 10:51:24 +00:00
|
|
|
-from six.moves import reload_module # @UnresolvedImport
|
2024-10-22 06:10:33 +00:00
|
|
|
+from importlib import reload
|
2022-12-09 10:51:24 +00:00
|
|
|
|
|
|
|
|
import pytest_profiling
|
2024-10-22 06:10:33 +00:00
|
|
|
|
2022-12-09 10:51:24 +00:00
|
|
|
-reload_module(pytest_profiling)
|
|
|
|
|
+reload(pytest_profiling)
|
|
|
|
|
|
2024-10-22 06:10:33 +00:00
|
|
|
import os
|
|
|
|
|
import subprocess
|
2025-02-04 04:14:12 +00:00
|
|
|
Index: pytest-profiling-1.8.1/setup.py
|
2024-03-12 04:30:51 +00:00
|
|
|
===================================================================
|
2025-02-04 04:14:12 +00:00
|
|
|
--- pytest-profiling-1.8.1.orig/setup.py
|
|
|
|
|
+++ pytest-profiling-1.8.1/setup.py
|
|
|
|
|
@@ -24,8 +24,7 @@ classifiers = [
|
|
|
|
|
'Programming Language :: Python :: 3.12',
|
2024-03-12 04:30:51 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
-install_requires = ['six',
|
|
|
|
|
- 'pytest',
|
|
|
|
|
+install_requires = ['pytest',
|
|
|
|
|
'gprof2dot',
|
|
|
|
|
]
|
|
|
|
|
|