forked from pytest-dev/pyfakefs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add possibility to add a cleanup hook to modules
- may be needed for modules that cannot cleanly reload - used for pandas.core.arrays.arrow.extension_types, see pytest-dev#947
- Loading branch information
1 parent
7f6bb1e
commit b373927
Showing
7 changed files
with
90 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"""Regression test for #947. | ||
Ensures that reloading the `pandas.core.arrays.arrow.extension_types` module succeeds. | ||
""" | ||
|
||
from pathlib import Path | ||
|
||
import pandas as pd | ||
|
||
|
||
def test_1(fs): | ||
dir_ = Path(__file__).parent / "data" | ||
fs.add_real_directory(dir_) | ||
pd.read_parquet(dir_ / "test.parquet") | ||
|
||
|
||
def test_2(): | ||
dir_ = Path(__file__).parent / "data" | ||
pd.read_parquet(dir_ / "test.parquet") |