py39.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import sys
  2. if sys.version_info >= (3, 10):
  3. from test.support.import_helper import (
  4. CleanImport as CleanImport,
  5. )
  6. from test.support.import_helper import (
  7. DirsOnSysPath as DirsOnSysPath,
  8. )
  9. from test.support.os_helper import (
  10. EnvironmentVarGuard as EnvironmentVarGuard,
  11. )
  12. from test.support.os_helper import (
  13. rmtree as rmtree,
  14. )
  15. from test.support.os_helper import (
  16. skip_unless_symlink as skip_unless_symlink,
  17. )
  18. from test.support.os_helper import (
  19. unlink as unlink,
  20. )
  21. else:
  22. from test.support import (
  23. CleanImport as CleanImport,
  24. )
  25. from test.support import (
  26. DirsOnSysPath as DirsOnSysPath,
  27. )
  28. from test.support import (
  29. EnvironmentVarGuard as EnvironmentVarGuard,
  30. )
  31. from test.support import (
  32. rmtree as rmtree,
  33. )
  34. from test.support import (
  35. skip_unless_symlink as skip_unless_symlink,
  36. )
  37. from test.support import (
  38. unlink as unlink,
  39. )