



# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
SCREAMING_SNAKE_CASE_:Any					=						abspath(join(dirname(dirname(__file__)), """src"""))
sys.path.insert(1, git_repo_path)

# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action="""ignore""", category=FutureWarning)




def      __UpperCamelCase     (  _lowerCAmelCase		)	->  Union[str, Any]:



    """simple docstring"""






    from diffusers.utils.testing_utils import pytest_addoption_shared

    pytest_addoption_shared(_lowerCAmelCase		)




def      __UpperCamelCase     (  _lowerCAmelCase		)	->  Tuple:



    """simple docstring"""






    from diffusers.utils.testing_utils import pytest_terminal_summary_main

    A			:	str										=       terminalreporter.config.getoption("""--make-reports"""		)
    if make_reports:
        pytest_terminal_summary_main(_lowerCAmelCase				,					id=_lowerCAmelCase		)







import socket




def      __UpperCamelCase     (  )	->  Optional[int]:



    """simple docstring"""






    A			:	str										=       socket.socket(socket.AF_INET				,					socket.SOCK_STREAM		)
    A			:	Union[str, Any]										=       socket.gethostname()
    A			:	Dict										=       1_2312

    sock.connect((host, port)		)
    sock.send(B"""Hello server!"""		)

    with open("""Received_file"""				,					"""wb"""		) as out_file:
        print("""File opened"""		)
        print("""Receiving data..."""		)
        while True:
            A			:	Optional[int]										=       sock.recv(1024		)
            if not data:
                break
            out_file.write(_lowerCAmelCase		)

    print("""Successfully received the file"""		)
    sock.close()
    print("""Connection closed"""		)


if __name__ == "__main__":
     main()


