[Tony Cappellini, Test Podcast] Should there be unusual behavior when running a simple program in a subprocess, when using pytest?
I have a pretty simple loop which counts from 1-10, sleeping 1 second in between each iteration. The loop should take 10 seconds (plus minor overhead). pytest thinks it takes < 1 second to execute. When I run that loop on the cmd line (outside of pytest), the loop runs as expected
```from time import sleep
finished = False
max_loops = 10
loop_count = 1
while not finished:
print(f'Subprocess running: loop {loop_count} of {max_loops}')
sleep(1.0)
loop_count += 1
if loop_count > max_loops:
finished = True
print('\nLoop complete, subprocess will exit\n')```
sphinx-apidoc
approach, there are a number of import errors during rendering. (The tests execute just fine.) Does the autodoc
approach tend to be more successful? AIUI, that method does not import the modules, but I've never used it.
error != None
I thought "this guy might be a little newer to Python"