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
gaoqiong
lm-evaluation-harness
Commits
a3d99617
Unverified
Commit
a3d99617
authored
Nov 20, 2021
by
Leo Gao
Committed by
GitHub
Nov 20, 2021
Browse files
Add pytest.approx to version_stable
parent
33ccde86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_version_stable.py
tests/test_version_stable.py
+1
-1
No files found.
tests/test_version_stable.py
View file @
a3d99617
...
...
@@ -15,7 +15,7 @@ def assert_target(name, ob):
fname
=
f
"tests/testdata/
{
name
}
.json"
if
os
.
path
.
exists
(
fname
):
with
open
(
fname
)
as
fh
:
assert
json
.
load
(
fh
)
==
json
.
loads
(
json
.
dumps
(
ob
,
sort_keys
=
True
))
assert
json
.
load
(
fh
)
==
pytest
.
approx
(
json
.
loads
(
json
.
dumps
(
ob
,
sort_keys
=
True
))
)
else
:
with
open
(
fname
,
'w'
)
as
fh
:
json
.
dump
(
ob
,
fh
,
sort_keys
=
True
)
...
...
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