Elijah Qi
70f69a5cb7
Add infinite depth support for function call tracing
...
This commit adds a new feature that enables infinite depth support for function call tracing in pysnooper. The test_infinite_depth_support test case has been added to verify the correct behavior of the feature. The test case covers the case of tracing a recursive function call with unlimited depth and checks the output against the expected values. The feature works by setting the depth parameter to float('inf') in the pysnooper.snoop function.
2023-04-15 23:46:27 -04:00
Elijah Qi
c84286c189
test_infinite_depth_support.py
2023-04-15 23:00:13 -04:00
Elijah Qi
8f5c2e3f85
Merge branch 'master' of github.com:elijahqi/PySnooper
2023-04-15 22:58:46 -04:00
AndreaYanglq
93eecf679e
add test_depth_inf
2023-04-15 22:57:04 -04:00
Elijah Qi
24a83765dd
Title: Replace deprecated getName() method with name attribute
...
Body:
This commit resolves a DeprecationWarning in the tracer.py file. The deprecated getName() method, which is used to get the name of the current_thread object, has been replaced with the recommended name attribute.
Changes:
- Updated line 473 in tracer.py to use current_thread.name instead of current_thread.getName()
With this change, the deprecation warning will no longer appear when running tests, and the code will be compatible with future releases of Python that may remove the deprecated method.
2023-04-15 22:22:08 -04:00
Elijah Qi
b9f35dbcb2
Modify depth to depth_iterator to support float('inf') and also break if _frame_candidate is internal_frame
2023-04-15 22:11:25 -04:00
Ram Rachum
caf4ec584a
Upgrade to Wing 9
2023-04-12 12:10:26 +03:00
Lumir Balhar
231969074e
Add pyproject.toml and switch setup.py to setup.cfg
2023-01-03 15:15:29 +02:00
Ram Rachum
1ad8ae08b0
Add Trove classifier for Python 3.11
2022-12-11 15:01:28 +02:00
Ram Rachum
7ca28af18d
Update authors
2022-04-02 16:07:32 +01:00
Ram Rachum
f3d7f39af4
Bump version
2022-04-02 16:02:58 +01:00
Lukas Klenk
4e277a5a1f
Add support for Ansible zipped source files ( #226 )
...
Add support for Ansible zipped source files
2022-04-02 17:58:48 +03:00
Ram Rachum
bea7c7a965
Bump version to 1.1.0
2022-01-14 20:37:05 +02:00
Ram Rachum
0f1e67b26b
Show colored output
2022-01-14 20:36:54 +02:00
Ram Rachum
31bfc637bc
Bump version to 1.0.0
2021-09-11 12:46:36 +03:00
Ram Rachum
8b0d6db21a
Bump version to 0.5.0
2021-05-19 11:23:53 +03:00
Lumir Balhar
219bfc98bf
Allow Python 3.10 to fail until we have a beta on Travis
2021-05-19 11:21:58 +03:00
Lumir Balhar
1c94b1af52
Make tests compatible with Python 3.10
2021-05-19 11:21:58 +03:00
Lumir Balhar
c539cbc520
Improve tests/CI configuration
...
- Add Python 3.10
- Fix DeprecationWarning for pytest and --strict option
- Install typing for Python 3.4
- Allow passing arguments to pytest command in tox
2021-05-19 11:21:58 +03:00
Lumír 'Frenzy' Balhar
03a51fd897
Add Fedora Linux to installation options
2021-05-14 21:46:34 +03:00
Ram Rachum
5abece033b
Remove Python 3.4 tests from Travis, dependency error
2021-05-09 14:59:03 +03:00
Ram Rachum
3469baccbb
Revert "Readme: Remove deleted Reddit page"
...
This reverts commit 887f82805f .
2021-05-09 14:48:38 +03:00
Ram Rachum
887f82805f
Readme: Remove deleted Reddit page
2021-04-04 15:13:54 +03:00
Ram Rachum
a5184c30e2
Bump version to 0.4.3
2021-02-27 11:14:08 +02:00
Ram Rachum
d6147c7dc2
Remove ad
2021-02-27 11:12:38 +02:00
Ram Rachum
dc1196efbb
Get rid of six, for reals
2021-02-27 11:04:37 +02:00
Ram Rachum
fb8c0fa90a
Add comparison to set -x
2020-12-28 20:13:09 +02:00
Ram Rachum
dc04ab1626
Bump version to 0.4.2
2020-09-14 12:45:52 +03:00
Ram Rachum
bd90ac0b9c
Add Yael Mintz to authors
2020-09-14 12:45:23 +03:00
Yael Mintz
f1194be092
fix #195
...
Fix '_thread._local' object has no attribute 'depth' raised by snooper if there's exception upon calling snooped func by initializing thread_global dict with depth when entering the trace() func
2020-09-14 12:44:11 +03:00
Ram Rachum
2f80c0f11a
Remove Travis badge
2020-06-06 00:06:00 +03:00
Ram Rachum
c154a585c4
Pypy3.6 doesn't exist on Travis
2020-05-27 22:30:11 +03:00
Ram Rachum
06f0a07e8e
Merge pull request #187 from cool-RR/2020-05-27-test-pr
...
foo
2020-05-27 22:21:17 +03:00
Ram Rachum
7a7766bf9d
Test on more Python versions
2020-05-27 22:19:07 +03:00
Ram Rachum
f4fe0a17ed
Test on Python 3.9
2020-05-27 22:16:35 +03:00
Ram Rachum
418460eb65
Update authors
2020-05-13 18:44:46 +03:00
Ram Rachum
7af9dbacb3
Rework installation readme
2020-05-13 18:43:42 +03:00
Mark Blakeney
0f11125cb2
Add installation instructions for Arch Linux
2020-05-13 18:41:46 +03:00
Ram Rachum
e4ef950090
Bump version to 0.4.1
2020-05-11 19:57:32 +03:00
Ram Rachum
473bb37a76
Add testing for exceptions
2020-05-05 14:37:01 +03:00
Ram Rachum
a602866ce1
Fix bug in OutputCapturer
2020-05-05 14:18:18 +03:00
Ram Rachum
679a77e336
Bump version to 0.4.0
2020-04-21 14:50:39 +03:00
Ram Rachum
43ed249e8c
Massaging some code
2020-04-21 14:50:39 +03:00
iory
48cc9d94cd
Fixed timedelta_isoformat
2020-04-21 14:50:39 +03:00
iory
0cb6df1f7b
Fixed multi thread case of elapsed_time
2020-04-21 14:50:39 +03:00
iory
444ea17314
Refactor the timedelta_isoformat
2020-04-21 14:50:39 +03:00
iory
35d3bc2db1
Delete default value of timedelta_isoformat
2020-04-21 14:50:39 +03:00
iory
612e6ebed7
Add elapsed_time check for test
2020-04-21 14:50:39 +03:00
iory
0c018d868e
Fixed elapsed_time
2020-04-21 14:50:39 +03:00
iory
828ffb1d3c
Add time_fromisoformat
2020-04-21 14:50:39 +03:00