
from unittest import main

from test_core import *
from test_lazy import *


if __name__ == '__main__':
    main()

import sys, os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '..')))

from unittest import main

from test_core import *
from test_lazy import *


if __name__ == '__main__':
    main()

Make running unit tests more friendly
Make running unit tests more friendly

+ import sys, os
+ sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '..')))
  
  from unittest import main
  
  from test_core import *
  from test_lazy import *
  
  
  if __name__ == '__main__':
      main()
  
Make running unit tests more friendly
## Code Before:

from unittest import main

from test_core import *
from test_lazy import *


if __name__ == '__main__':
    main()

## Instruction:
Make running unit tests more friendly
## Code After:
import sys, os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '..')))

from unittest import main

from test_core import *
from test_lazy import *


if __name__ == '__main__':
    main()
