Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
576eec98
"...git@developer.sourcefind.cn:modelzoo/alphafold2_jax.git" did not exist on "e80e25243ff5c74864367be1412b44e26bf88a63"
Unverified
Commit
576eec98
authored
Sep 14, 2020
by
Stas Bekman
Committed by
GitHub
Sep 14, 2020
Browse files
ignore FutureWarning in tests (#7079)
parent
15d18e03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tests/conftest.py
tests/conftest.py
+6
-0
No files found.
tests/conftest.py
View file @
576eec98
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
# by pytest before any tests are run
# by pytest before any tests are run
import
sys
import
sys
import
warnings
from
os.path
import
abspath
,
dirname
,
join
from
os.path
import
abspath
,
dirname
,
join
...
@@ -9,3 +10,8 @@ from os.path import abspath, dirname, join
...
@@ -9,3 +10,8 @@ from os.path import abspath, dirname, join
# 'pip install -e .[dev]' when switching between checkouts and running tests.
# '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
(
__file__
)),
"src"
))
sys
.
path
.
insert
(
1
,
git_repo_path
)
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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment