mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-14 02:34:28 +00:00
python 3.9 compat
This commit is contained in:
parent
1f9e3ea481
commit
ea2d1238ed
1 changed files with 2 additions and 3 deletions
|
@ -82,9 +82,8 @@ def test_relative_to_root_dir():
|
|||
beneath the root directory (eg `/data`) even if they exist
|
||||
|
||||
"""
|
||||
# try:
|
||||
this_file = Path(__file__).resolve()
|
||||
test_path = this_file.parents[-2]
|
||||
# python 3.9 compat, which can't use negative indices
|
||||
test_path = [p for p in Path(__file__).resolve().parents][-2]
|
||||
|
||||
test_data = {"some_field": str(test_path)}
|
||||
|
||||
|
|
Loading…
Reference in a new issue