[Tutor] Running Lib/test/test_shutil.py

2019-06-13 Thread Tom Hale

Hi all,

I hope this is the best place to ask (please let me know if there is a 
more appropriate list):


Checking out CPython v3.8.0b1, I'm trying to run:

  % python Lib/test/test_shutil.py

I'm getting:

Traceback (most recent call last):
  File "Lib/test/test_shutil.py", line 19, in 
from shutil import (make_archive,
ImportError: cannot import name '_GiveupOnFastCopy' from 'shutil' 
(/usr/lib/python3.7/shutil.py)


Am I trying to run the test file in the right way?

Context: I'm proposing to add /shutil.(sym)?link/ and want to start 
writing my tests with running the existing tests :)


Is there a doc that I've missed?

Cheers!

--
Tom Hale
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] os.is_file and os.is_dir missing from CPython 3.8.0b?

2019-06-14 Thread Tom Hale
#x27;O_NOATIME', 'EX_OK', 'EX_USAGE', 'EX_DATAERR', 'EX_NOINPUT', 
'EX_NOUSER', 'EX_NOHOST', 'EX_UNAVAILABLE', 'EX_SOFTWARE', 'EX_OSERR', 
'EX_OSFILE', 'EX_CANTCREAT', 'EX_IOERR', 'EX_TEMPFAIL', 'EX_PROTOCOL', 
'EX_NOPERM', 'EX_CONFIG', 'ST_RDONLY', 'ST_NOSUID', 'ST_NODEV', 
'ST_NOEXEC', 'ST_SYNCHRONOUS', 'ST_MANDLOCK', 'ST_WRITE', 'ST_APPEND', 
'ST_NOATIME', 'ST_NODIRATIME', 'ST_RELATIME', 'POSIX_FADV_NORMAL', 
'POSIX_FADV_SEQUENTIAL', 'POSIX_FADV_RANDOM', 'POSIX_FADV_NOREUSE', 
'POSIX_FADV_WILLNEED', 'POSIX_FADV_DONTNEED', 'P_PID', 'P_PGID', 
'P_ALL', 'WEXITED', 'WNOWAIT', 'WSTOPPED', 'CLD_EXITED', 'CLD_DUMPED', 
'CLD_TRAPPED', 'CLD_CONTINUED', 'F_LOCK', 'F_TLOCK', 'F_ULOCK', 
'F_TEST', 'RWF_DSYNC', 'RWF_HIPRI', 'RWF_SYNC', 'RWF_NOWAIT', 
'POSIX_SPAWN_OPEN', 'POSIX_SPAWN_CLOSE', 'POSIX_SPAWN_DUP2', 
'SCHED_OTHER', 'SCHED_FIFO', 'SCHED_RR', 'SCHED_BATCH', 'SCHED_IDLE', 
'SCHED_RESET_ON_FORK', 'XATTR_CREATE', 'XATTR_REPLACE', 
'XATTR_SIZE_MAX', 'RTLD_LAZY', 'RTLD_NOW', 'RTLD_GLOBAL', 'RTLD_LOCAL', 
'RTLD_NODELETE', 'RTLD_NOLOAD', 'RTLD_DEEPBIND', 'GRND_RANDOM', 
'GRND_NONBLOCK', 'MFD_CLOEXEC', 'MFD_ALLOW_SEALING', 'MFD_HUGETLB', 
'MFD_HUGE_SHIFT', 'MFD_HUGE_MASK', 'MFD_HUGE_64KB', 'MFD_HUGE_512KB', 
'MFD_HUGE_1MB', 'MFD_HUGE_2MB', 'MFD_HUGE_8MB', 'MFD_HUGE_16MB', 
'MFD_HUGE_32MB', 'MFD_HUGE_256MB', 'MFD_HUGE_512MB', 'MFD_HUGE_1GB', 
'MFD_HUGE_2GB', 'MFD_HUGE_16GB', 'pathconf_names', 'confstr_names', 
'sysconf_names', 'error', 'waitid_result', 'stat_result', 
'statvfs_result', 'sched_param', 'times_result', 'uname_result', 
'terminal_size', 'DirEntry', '_exit', 'path', 'curdir', 'pardir', 'sep', 
'pathsep', 'defpath', 'extsep', 'altsep', 'devnull', 'supports_dir_fd', 
'supports_effective_ids', 'supports_fd', 'supports_follow_symlinks', 
'SEEK_SET', 'SEEK_CUR', 'SEEK_END', 'makedirs', 'removedirs', 'renames', 
'walk', 'fwalk', '_fwalk', 'execl', 'execle', 'execlp', 'execlpe', 
'execvp', 'execvpe', '_execvpe', 'get_exec_path', 'MutableMapping', 
'_Environ', '_putenv', '_unsetenv', 'getenv', 'supports_bytes_environ', 
'environb', 'getenvb', 'fsencode', 'fsdecode', 'P_WAIT', 'P_NOWAIT', 
'P_NOWAITO', '_spawnvef', 'spawnv', 'spawnve', 'spawnvp', 'spawnvpe', 
'spawnl', 'spawnle', 'spawnlp', 'spawnlpe', 'popen', '_wrap_close', 
'fdopen', '_fspath', 'PathLike'])

>>>>

Thanks,
--
Tom Hale
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor