@@ -78,6 +78,11 @@ def foo():
78
78
response = client_socket .recv (1024 )
79
79
self .assertEqual (response , b"ready" )
80
80
stack_trace = get_stack_trace (p .pid )
81
+ import pathlib
82
+ location = pathlib .Path (os .getcwd ())
83
+ files = list (location .glob ("*/*" ))
84
+ print (files , file = sys .__stderr__ )
85
+
81
86
except PermissionError :
82
87
self .skipTest ("Insufficient permissions to read the stack trace" )
83
88
finally :
@@ -164,6 +169,11 @@ def new_eager_loop():
164
169
response = client_socket .recv (1024 )
165
170
self .assertEqual (response , b"ready" )
166
171
stack_trace = get_async_stack_trace (p .pid )
172
+ import pathlib
173
+ location = pathlib .Path (os .getcwd ())
174
+ files = list (location .glob ("*/*" ))
175
+ print (files , file = sys .__stderr__ )
176
+
167
177
except PermissionError :
168
178
self .skipTest (
169
179
"Insufficient permissions to read the stack trace" )
@@ -236,6 +246,12 @@ async def main():
236
246
response = client_socket .recv (1024 )
237
247
self .assertEqual (response , b"ready" )
238
248
stack_trace = get_async_stack_trace (p .pid )
249
+ import pathlib
250
+ location = pathlib .Path (os .getcwd ())
251
+ files = list (location .glob ("*/*" ))
252
+ print (files , file = sys .__stderr__ )
253
+
254
+
239
255
except PermissionError :
240
256
self .skipTest ("Insufficient permissions to read the stack trace" )
241
257
finally :
@@ -301,6 +317,11 @@ async def main():
301
317
response = client_socket .recv (1024 )
302
318
self .assertEqual (response , b"ready" )
303
319
stack_trace = get_async_stack_trace (p .pid )
320
+
321
+ import pathlib
322
+ location = pathlib .Path (os .getcwd ())
323
+ files = list (location .glob ("*/*" ))
324
+ print (files , file = sys .__stderr__ )
304
325
except PermissionError :
305
326
self .skipTest (
306
327
"Insufficient permissions to read the stack trace" )
@@ -370,6 +391,11 @@ async def main():
370
391
response = client_socket .recv (1024 )
371
392
self .assertEqual (response , b"ready" )
372
393
stack_trace = get_async_stack_trace (p .pid )
394
+
395
+ import pathlib
396
+ location = pathlib .Path (os .getcwd ())
397
+ files = list (location .glob ("*/*" ))
398
+ print (files , file = sys .__stderr__ )
373
399
except PermissionError :
374
400
self .skipTest (
375
401
"Insufficient permissions to read the stack trace" )
@@ -512,6 +538,10 @@ async def main():
512
538
# for some reason)
513
539
if sys .platform != "win32" :
514
540
self .assertEqual ([[['echo_client_spam' ], 'echo client spam' , [[['main' ], 'Task-1' , []]]]], entries [- 1 ][1 ])
541
+ import pathlib
542
+ location = pathlib .Path (os .getcwd ())
543
+ files = list (location .glob ("*/*" ))
544
+ print (files , file = sys .__stderr__ )
515
545
except PermissionError :
516
546
self .skipTest (
517
547
"Insufficient permissions to read the stack trace" )
@@ -528,6 +558,5 @@ async def main():
528
558
def test_self_trace (self ):
529
559
stack_trace = get_stack_trace (os .getpid ())
530
560
self .assertEqual (stack_trace [0 ], "test_self_trace" )
531
-
532
561
if __name__ == "__main__" :
533
562
unittest .main ()
0 commit comments