== CPython 3.6.0a0 (default:f4c6dab59cd8+, May 3 2016, 10:42:45) [GCC 4.9 20140827 (prerelease)] == Linux-3.4.67+-i686-with-libc little-endian == hash algorithm: fnv 32bit == /data/local/tmp/test_python_2498 Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0) Run tests sequentially 0:00:00 [1/1] test_os test_blocking (test.test_os.BlockingTests) ... ok test_walk_bad_dir (test.test_os.BytesWalkTests) ... ok test_walk_bottom_up (test.test_os.BytesWalkTests) ... ok test_walk_prune (test.test_os.BytesWalkTests) ... ok test_walk_symlink (test.test_os.BytesWalkTests) ... ok test_walk_topdown (test.test_os.BytesWalkTests) ... ok test_cpu_count (test.test_os.CPUCountTests) ... ok test_chown (test.test_os.ChownFileTests) ... skipped 'test needs more than one group' test_chown_uid_gid_arguments_must_be_index (test.test_os.ChownFileTests) ... ok test_chown_with_root (test.test_os.ChownFileTests) ... skipped 'test needs root privilege and more than one user' test_chown_without_permission (test.test_os.ChownFileTests) ... skipped 'test needs non-root account and more than one user' test_devnull (test.test_os.DevNullTests) ... ok test_bad_fd (test.test_os.DeviceEncodingTests) ... ok test_device_encoding (test.test_os.DeviceEncodingTests) ... skipped 'test requires a tty and either Windows or nl_langinfo(CODESET)' test___repr__ (test.test_os.EnvironTests) Check that the repr() of os.environ looks like environ({...}). ... ok test_bool (test.test_os.EnvironTests) ... ok test_constructor (test.test_os.EnvironTests) ... ok test_environb (test.test_os.EnvironTests) ... ok test_get (test.test_os.EnvironTests) ... ok test_get_exec_path (test.test_os.EnvironTests) ... ok test_getitem (test.test_os.EnvironTests) ... ok test_items (test.test_os.EnvironTests) ... ok test_key_type (test.test_os.EnvironTests) ... ok test_keys (test.test_os.EnvironTests) ... ok test_keyvalue_types (test.test_os.EnvironTests) ... ok test_len (test.test_os.EnvironTests) ... ok test_os_popen_iter (test.test_os.EnvironTests) ... skipped 'requires /bin/sh' test_pop (test.test_os.EnvironTests) ... ok test_popitem (test.test_os.EnvironTests) ... ok test_read (test.test_os.EnvironTests) ... ok test_setdefault (test.test_os.EnvironTests) ... ok test_unset_error (test.test_os.EnvironTests) ... ok test_update (test.test_os.EnvironTests) ... ok test_update2 (test.test_os.EnvironTests) ... skipped 'requires /bin/sh' test_values (test.test_os.EnvironTests) ... ok test_write (test.test_os.EnvironTests) ... ok test_execvpe_with_bad_arglist (test.test_os.ExecTests) ... ok test_execvpe_with_bad_program (test.test_os.ExecTests) ... ok test_internal_execvpe_str (test.test_os.ExecTests) ... ok test_os_all (test.test_os.ExportsTests) ... ok test_dup (test.test_os.FDInheritanceTests) ... ok test_dup2 (test.test_os.FDInheritanceTests) ... ok test_get_inheritable_cloexec (test.test_os.FDInheritanceTests) ... ok test_get_set_inheritable (test.test_os.FDInheritanceTests) ... ok test_open (test.test_os.FDInheritanceTests) ... ok test_openpty (test.test_os.FDInheritanceTests) ... ok test_pipe (test.test_os.FDInheritanceTests) ... ok test_set_inheritable_cloexec (test.test_os.FDInheritanceTests) ... ok test_identity (test.test_os.FSEncodingTests) ... ok test_nop (test.test_os.FSEncodingTests) ... ok test_access (test.test_os.FileTests) ... ok test_closerange (test.test_os.FileTests) ... ok test_fdopen (test.test_os.FileTests) ... ok test_large_read (test.test_os.FileTests) ... skipped 'needs INT_MAX < PY_SSIZE_T_MAX' test_open_keywords (test.test_os.FileTests) ... ok test_read (test.test_os.FileTests) ... ok test_rename (test.test_os.FileTests) ... ok test_replace (test.test_os.FileTests) ... ok test_symlink_keywords (test.test_os.FileTests) ... ok test_write (test.test_os.FileTests) ... ok test_write_windows_console (test.test_os.FileTests) ... skipped 'test specific to the Windows console' test_compare_to_walk (test.test_os.FwalkTests) ... ok test_dir_fd (test.test_os.FwalkTests) ... ok test_fd_leak (test.test_os.FwalkTests) ... ok test_walk_bad_dir (test.test_os.FwalkTests) ... ok test_walk_bottom_up (test.test_os.FwalkTests) ... ok test_walk_prune (test.test_os.FwalkTests) ... ok test_walk_symlink (test.test_os.FwalkTests) ... ok test_walk_topdown (test.test_os.FwalkTests) ... ok test_yields_correct_dir_fd (test.test_os.FwalkTests) ... ok test_link (test.test_os.LinkTests) ... ok test_link_bytes (test.test_os.LinkTests) ... ok test_unicode_name (test.test_os.LinkTests) ... ok test_getlogin (test.test_os.LoginTests) ... skipped 'Skip due to platform/environment differences on *NIX buildbots' test_exist_ok_existing_directory (test.test_os.MakedirTests) ... ok test_exist_ok_existing_regular_file (test.test_os.MakedirTests) ... ok test_exist_ok_s_isgid_directory (test.test_os.MakedirTests) ... ok test_makedir (test.test_os.MakedirTests) ... ok test_directory_link_nonlocal (test.test_os.NonLocalSymlinkTests) ... ok test_oserror_filename (test.test_os.OSErrorTests) ... ok test_listdir (test.test_os.Pep383Tests) ... ok test_open (test.test_os.Pep383Tests) ... ok test_stat (test.test_os.Pep383Tests) ... ok test_statvfs (test.test_os.Pep383Tests) ... ok test_getppid (test.test_os.PidTests) ... ok test_waitpid (test.test_os.PidTests) ... ok test_setegid (test.test_os.PosixUidGidTests) ... ok test_seteuid (test.test_os.PosixUidGidTests) ... ok test_setgid (test.test_os.PosixUidGidTests) ... ok test_setregid (test.test_os.PosixUidGidTests) ... ok test_setregid_neg1 (test.test_os.PosixUidGidTests) ... ok test_setreuid (test.test_os.PosixUidGidTests) ... ok test_setreuid_neg1 (test.test_os.PosixUidGidTests) ... ok test_setuid (test.test_os.PosixUidGidTests) ... ok test_set_get_priority (test.test_os.ProgramPriorityTests) ... ok test_remove_all (test.test_os.RemoveDirsTests) ... ok test_remove_nothing (test.test_os.RemoveDirsTests) ... ok test_remove_partial (test.test_os.RemoveDirsTests) ... ok test_15261 (test.test_os.StatAttributeTests) ... skipped 'Win32 specific tests' test_1686475 (test.test_os.StatAttributeTests) ... skipped 'Win32 specific tests' test_file_attributes (test.test_os.StatAttributeTests) ... skipped 'st_file_attributes is Win32 specific' test_stat_attributes (test.test_os.StatAttributeTests) ... ok test_stat_attributes_bytes (test.test_os.StatAttributeTests) ... ok test_stat_result_pickle (test.test_os.StatAttributeTests) ... ok test_statvfs_attributes (test.test_os.StatAttributeTests) ... ok test_statvfs_result_pickle (test.test_os.StatAttributeTests) ... ok test_does_not_crash (test.test_os.TermsizeTests) Check if get_terminal_size() returns a meaningful value. ... skipped 'failed to query terminal size' test_stty_match (test.test_os.TermsizeTests) Check if stty returns the same results ... skipped 'stty invocation failed' test_blocking (test.test_os.TestInvalidFD) ... ok test_closerange (test.test_os.TestInvalidFD) ... ok test_dup (test.test_os.TestInvalidFD) ... ok test_dup2 (test.test_os.TestInvalidFD) ... ok test_fchdir (test.test_os.TestInvalidFD) ... ok test_fchmod (test.test_os.TestInvalidFD) ... ok test_fchown (test.test_os.TestInvalidFD) ... ok test_fdatasync (test.test_os.TestInvalidFD) ... ok test_fdopen (test.test_os.TestInvalidFD) ... ok test_fpathconf (test.test_os.TestInvalidFD) ... ok test_fstat (test.test_os.TestInvalidFD) ... ok test_fstatvfs (test.test_os.TestInvalidFD) ... ok test_fsync (test.test_os.TestInvalidFD) ... ok test_ftruncate (test.test_os.TestInvalidFD) ... ok test_inheritable (test.test_os.TestInvalidFD) ... ok test_isatty (test.test_os.TestInvalidFD) ... ok test_lseek (test.test_os.TestInvalidFD) ... ok test_read (test.test_os.TestInvalidFD) ... ok test_readv (test.test_os.TestInvalidFD) ... ok test_tcgetpgrp (test.test_os.TestInvalidFD) ... ok test_tcsetpgrpt (test.test_os.TestInvalidFD) ... ok test_ttyname (test.test_os.TestInvalidFD) ... ok test_write (test.test_os.TestInvalidFD) ... ok test_writev (test.test_os.TestInvalidFD) ... ok test_attributes (test.test_os.TestScandir) ... ok test_bad_path_type (test.test_os.TestScandir) ... ok test_broken_symlink (test.test_os.TestScandir) ... ok test_bytes (test.test_os.TestScandir) ... ok test_close (test.test_os.TestScandir) ... ok test_consume_iterator_twice (test.test_os.TestScandir) ... ok test_context_manager (test.test_os.TestScandir) ... ok test_context_manager_close (test.test_os.TestScandir) ... ok test_context_manager_exception (test.test_os.TestScandir) ... ok test_current_directory (test.test_os.TestScandir) ... ok test_empty_path (test.test_os.TestScandir) ... ok test_removed_dir (test.test_os.TestScandir) ... ok test_removed_file (test.test_os.TestScandir) ... ok test_repr (test.test_os.TestScandir) ... ok test_resource_warning (test.test_os.TestScandir) ... ok test_flags (test.test_os.TestSendfile) ... skipped 'requires headers and trailers support' test_headers (test.test_os.TestSendfile) ... skipped 'requires headers and trailers support' test_invalid_offset (test.test_os.TestSendfile) ... ok test_keywords (test.test_os.TestSendfile) ... ok test_offset_overflow (test.test_os.TestSendfile) ... ok test_send_at_certain_offset (test.test_os.TestSendfile) ... ok test_send_whole_file (test.test_os.TestSendfile) ... ok test_trailers (test.test_os.TestSendfile) ... skipped 'requires headers and trailers support' test_urandom_failure (test.test_os.URandomFDTests) ... ok test_urandom_fd_closed (test.test_os.URandomFDTests) ... ok test_urandom_fd_reopened (test.test_os.URandomFDTests) ... FAIL test_urandom_length (test.test_os.URandomTests) ... ok test_urandom_subprocess (test.test_os.URandomTests) ... ok test_urandom_value (test.test_os.URandomTests) ... ok test_large_time (test.test_os.UtimeTests) ... skipped 'requires NTFS' test_utime (test.test_os.UtimeTests) ... ok test_utime_by_indexed (test.test_os.UtimeTests) ... ok test_utime_by_times (test.test_os.UtimeTests) ... ok test_utime_current (test.test_os.UtimeTests) ... ok test_utime_current_old (test.test_os.UtimeTests) ... ok test_utime_dir_fd (test.test_os.UtimeTests) ... ok test_utime_directory (test.test_os.UtimeTests) ... ok test_utime_fd (test.test_os.UtimeTests) ... ok test_utime_invalid_arguments (test.test_os.UtimeTests) ... ok test_utime_nofollow_symlinks (test.test_os.UtimeTests) ... ok test_walk_bad_dir (test.test_os.WalkTests) ... ok test_walk_bottom_up (test.test_os.WalkTests) ... ok test_walk_prune (test.test_os.WalkTests) ... ok test_walk_symlink (test.test_os.WalkTests) ... ok test_walk_topdown (test.test_os.WalkTests) ... ok test_deprecated (test.test_os.Win32DeprecatedBytesAPI) ... skipped 'Win32 specific tests' test_symlink (test.test_os.Win32DeprecatedBytesAPI) ... skipped 'Win32 specific tests' test_chdir (test.test_os.Win32ErrorTests) ... skipped 'Win32 specific tests' test_chmod (test.test_os.Win32ErrorTests) ... skipped 'Win32 specific tests' test_mkdir (test.test_os.Win32ErrorTests) ... skipped 'Win32 specific tests' test_remove (test.test_os.Win32ErrorTests) ... skipped 'Win32 specific tests' test_rename (test.test_os.Win32ErrorTests) ... skipped 'Win32 specific tests' test_utime (test.test_os.Win32ErrorTests) ... skipped 'Win32 specific tests' test_create_junction (test.test_os.Win32JunctionTests) ... skipped 'Win32 specific tests' test_unlink_removes_junction (test.test_os.Win32JunctionTests) ... skipped 'Win32 specific tests' test_CTRL_BREAK_EVENT (test.test_os.Win32KillTests) ... skipped 'Win32 specific tests' test_CTRL_C_EVENT (test.test_os.Win32KillTests) ... skipped 'Win32 specific tests' test_kill_int (test.test_os.Win32KillTests) ... skipped 'Win32 specific tests' test_kill_sigterm (test.test_os.Win32KillTests) ... skipped 'Win32 specific tests' test_listdir_extended_path (test.test_os.Win32ListdirTests) Test when the path starts with '\\?\'. ... skipped 'Win32 specific tests' test_listdir_no_extended_path (test.test_os.Win32ListdirTests) Test when the path is not an "extended" path. ... skipped 'Win32 specific tests' test_12084 (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests' test_directory_link (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests' test_file_link (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests' test_isdir_on_directory_link_to_missing_target (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests' test_remove_directory_link_to_missing_target (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests' test_rmdir_on_directory_link_to_missing_target (test.test_os.Win32SymlinkTests) ... test test_os failed skipped 'Win32 specific tests' ====================================================================== FAIL: test_urandom_fd_reopened (test.test_os.URandomFDTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_os.py", line 1321, in test_urandom_fd_reopened rc, out, err = assert_python_ok('-Sc', code) File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/support/script_helper.py", line 135, in assert_python_ok return _assert_python(True, *args, **env_vars) File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/support/script_helper.py", line 121, in _assert_python err)) AssertionError: Process return code is 1 command line: ['/data/local/tmp/python/bin/python', '-X', 'faulthandler', '-I', '-Sc', "if 1:\n import os\n import sys\n import test.support\n os.urandom(4)\n with test.support.SuppressCrashReport():\n for fd in range(3, 256):\n try:\n os.close(fd)\n except OSError:\n pass\n else:\n # Found the urandom fd (XXX hopefully)\n break\n os.closerange(3, 256)\n with open('@test_2498_tmp', 'rb') as f:\n os.dup2(f.fileno(), fd)\n sys.stdout.buffer.write(os.urandom(4))\n sys.stdout.buffer.write(os.urandom(4))\n "] stdout: --- --- stderr: --- Traceback (most recent call last): File "", line 17, in OSError: [Errno 22] Invalid argument --- ---------------------------------------------------------------------- Ran 199 tests in 0.806s FAILED (failures=1, skipped=40) 1 test failed: test_os Total duration: 0:00:01