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
OpenDAS
vision
Commits
3e847dc0
Unverified
Commit
3e847dc0
authored
May 04, 2021
by
Vasilis Vryniotis
Committed by
GitHub
May 04, 2021
Browse files
Clean up test accept behaviour (#3759)
parent
cde7ff01
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/common_utils.py
test/common_utils.py
+2
-2
No files found.
test/common_utils.py
View file @
3e847dc0
...
...
@@ -43,7 +43,7 @@ def set_rng_seed(seed):
np
.
random
.
seed
(
seed
)
ACCEPT
=
os
.
getenv
(
'EXPECTTEST_ACCEPT'
)
ACCEPT
=
os
.
getenv
(
'EXPECTTEST_ACCEPT'
,
'0'
)
==
'1'
TEST_WITH_SLOW
=
os
.
getenv
(
'PYTORCH_TEST_WITH_SLOW'
,
'0'
)
==
'1'
...
...
@@ -121,7 +121,7 @@ class TestCase(unittest.TestCase):
pickable with `torch.save`. This file
is placed in the 'expect' directory in the same directory
as the test script. You can automatically update the recorded test
output using
--accept
.
output using
an EXPECTTEST_ACCEPT=1 env variable
.
"""
expected_file
=
self
.
_get_expected_file
(
name
)
...
...
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