Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jvoisin
mat2
Commits
05b8e97b
Commit
05b8e97b
authored
Mar 29, 2022
by
jvoisin
Browse files
Simplification of the testsuite
parent
2a74a400
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_climat2.py
View file @
05b8e97b
...
...
@@ -267,14 +267,7 @@ class TestCommandLineParallel(unittest.TestCase):
def
test_different
(
self
):
src
=
'./tests/data/'
dst
=
'./tests/data/parallel'
if
sys
.
version_info
>=
(
3
,
8
):
with
os
.
scandir
(
src
)
as
itr
:
entries
=
list
(
itr
)
shutil
.
_copytree
(
entries
=
entries
,
src
=
src
,
dst
=
dst
,
symlinks
=
False
,
ignore
=
None
,
copy_function
=
shutil
.
copy2
,
ignore_dangling_symlinks
=
False
)
else
:
shutil
.
copytree
(
src
,
dst
)
shutil
.
copytree
(
src
,
dst
)
proc
=
subprocess
.
Popen
(
mat2_binary
+
glob
.
glob
(
'./tests/data/parallel/dirty.*'
),
stdout
=
subprocess
.
PIPE
)
...
...
@@ -286,7 +279,7 @@ class TestCommandLineParallel(unittest.TestCase):
self
.
assertIsNotNone
(
p
)
p
=
parser_factory
.
get_parser
(
p
.
output_filename
)
self
.
assertEqual
(
p
.
get_meta
(),
{})
shutil
.
rmtree
(
'./tests/data/parallel'
)
shutil
.
rmtree
(
'./tests/data/parallel
/
'
)
def
test_faulty
(
self
):
for
i
in
range
(
self
.
iterations
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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