Skip to content

Commit

Permalink
[SPARK-25763][SQL][PYSPARK][TEST] Use more @contextmanager to ensur…
Browse files Browse the repository at this point in the history
…e clean-up each test.

## What changes were proposed in this pull request?

Currently each test in `SQLTest` in PySpark is not cleaned properly.
We should introduce and use more `contextmanager` to be convenient to clean up the context properly.

## How was this patch tested?

Modified tests.

Closes #22762 from ueshin/issues/SPARK-25763/cleanup_sqltests.

Authored-by: Takuya UESHIN <ueshin@databricks.com>
Signed-off-by: hyukjinkwon <gurwls223@apache.org>
  • Loading branch information
ueshin authored and HyukjinKwon committed Oct 18, 2018
1 parent 1117fc3 commit e80f18d
Showing 1 changed file with 318 additions and 238 deletions.
Loading

0 comments on commit e80f18d

Please sign in to comment.