Skip to content

Commit f8cbe46

Browse files
authored
Merge branch 'master' into models/ssdlite
2 parents 8b9ca53 + 3e847dc commit f8cbe46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/common_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def set_rng_seed(seed):
4343
np.random.seed(seed)
4444

4545

46-
ACCEPT = os.getenv('EXPECTTEST_ACCEPT')
46+
ACCEPT = os.getenv('EXPECTTEST_ACCEPT', '0') == '1'
4747
TEST_WITH_SLOW = os.getenv('PYTORCH_TEST_WITH_SLOW', '0') == '1'
4848

4949

@@ -121,7 +121,7 @@ def assertExpected(self, output, name, prec=None):
121121
pickable with `torch.save`. This file
122122
is placed in the 'expect' directory in the same directory
123123
as the test script. You can automatically update the recorded test
124-
output using --accept.
124+
output using an EXPECTTEST_ACCEPT=1 env variable.
125125
"""
126126
expected_file = self._get_expected_file(name)
127127

0 commit comments

Comments
 (0)