Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
13b14bf5
Commit
13b14bf5
authored
May 16, 2017
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to improve serialization test
parent
d330fcc4
Pipeline
#12525
canceled with stage
in 57 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
26 deletions
+13
-26
test/test_serialization.py
test/test_serialization.py
+13
-26
No files found.
test/test_serialization.py
View file @
13b14bf5
...
...
@@ -21,31 +21,18 @@ import unittest
from
numpy.testing
import
assert_equal
from
keepers
import
Repository
from
test.common
import
expand
,
generate_spaces
from
nose.plugins.skip
import
SkipTest
import
os
#try:
import
h5py
#except ImportError:
# h5py_available = False
#else:
# h5py_available = True
if
h5py_available
:
class
SpaceSerializationTests
(
unittest
.
TestCase
):
# variable to hold the repository
_repo
=
None
@
classmethod
def
setUpClass
(
cls
):
cls
.
_repo
=
Repository
(
'test.h5'
)
class
SpaceSerializationTests
(
unittest
.
TestCase
):
@
expand
([[
space
]
for
space
in
generate_spaces
()])
def
test_serialization
(
self
,
space
):
self
.
_repo
.
add
(
space
,
'space'
)
self
.
_repo
.
commit
()
try
:
import
h5py
except
ImportError
:
raise
SkipTest
repo
=
Repository
(
'test.h5'
)
repo
.
add
(
space
,
'space'
)
repo
.
commit
()
assert_equal
(
space
,
self
.
_repo
.
get
(
'space'
))
@
classmethod
def
tearDownClass
(
cls
):
os
.
remove
(
'test.h5'
)
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