def _test() -> None:
    import os
    import doctest
    import shutil
    import sys
    import tempfile
    import uuid
    from pyspark.sql import SparkSession
    import pyspark.pandas.frame
    os.chdir(os.environ['SPARK_HOME'])
    globs = pyspark.pandas.frame.__dict__.copy()
    globs['ps'] = pyspark.pandas
    spark = SparkSession.builder.master('local[4]').appName('pyspark.pandas.frame tests').getOrCreate()
    db_name = ('db%s' % str(uuid.uuid4()).replace('-', ''))
    spark.sql(('CREATE DATABASE %s' % db_name))
    globs['db'] = db_name
    path = tempfile.mkdtemp()
    globs['path'] = path
    (failure_count, test_count) = doctest.testmod(pyspark.pandas.frame, globs=globs, optionflags=(doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE))
    shutil.rmtree(path, ignore_errors=True)
    spark.sql(('DROP DATABASE IF EXISTS %s CASCADE' % db_name))
    spark.stop()
    if failure_count:
        sys.exit((- 1))
def _test() -> None:
    import os
    import doctest
    import shutil
    import sys
    import tempfile
    import uuid
    from pyspark.sql import SparkSession
    import pyspark.pandas.frame
    os.chdir(os.environ['SPARK_HOME'])
    globs = pyspark.pandas.frame.__dict__.copy()
    globs['ps'] = pyspark.pandas
    spark = SparkSession.builder.master('local[4]').appName('pyspark.pandas.frame tests').getOrCreate()
    db_name = ('db%s' % str(uuid.uuid4()).replace('-', ))
    spark.sql(('CREATE DATABASE %s' % db_name))
    globs['db'] = db_name
    path = tempfile.mkdtemp()
    globs['path'] = path
    (failure_count, test_count) = doctest.testmod(pyspark.pandas.frame, globs=globs, optionflags=(doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE))
    shutil.rmtree(path, ignore_errors=True)
    spark.sql(('DROP DATABASE IF EXISTS %s CASCADE' % db_name))
    spark.stop()
    if failure_count:
        sys.exit((- 1))