Skip to content

Commit

Permalink
[examples] fix sys.path in conftest.py (#11636)
Browse files Browse the repository at this point in the history
* restore conftest.py

* fix conftest and make copies

* remove unneeded parts

* remove unwanted files
  • Loading branch information
stas00 authored May 7, 2021
1 parent cd9b8d7 commit ba0d50f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/pytorch/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@

# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
git_repo_path = abspath(join(dirname(dirname(__file__)), "src"))
git_repo_path = abspath(join(dirname(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)
Expand Down

0 comments on commit ba0d50f

Please sign in to comment.