Mojo Doctest with Sync Parallelize

When trying to run a doctest with sync_parallelize, I cannot manage to run multiple tasks in a Doctest. Does mojo have a workaround for this? Or this is per design? This is an example:

struct SyncPar:
    """Sync Parallelize didn't work on doctests.

    ```mojo
    from time import sleep
    from algorithm import sync_parallelize
    from testing import assert_true

    fn do_par(i: Int) capturing:
        print("Running iteration", i)
        sleep(0.1)
        print("finish iteration", i)

    sync_parallelize[do_par](4)

    assert_true(False)

    ```
    """