Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.io.base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.io.base
Merge requests
!40
Replace nose with pytest
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Replace nose with pytest
deprecation
into
master
Overview
0
Commits
1
Pipelines
2
Changes
4
Merged
Replace nose with pytest
Amir MOHAMMADI
requested to merge
deprecation
into
master
May 3, 2022
Overview
0
Commits
1
Pipelines
2
Changes
4
0
0
Merge request reports
Compare
master
version 1
2be2085e
May 3, 2022
master (base)
and
latest version
latest version
09069b09
1 commit,
May 3, 2022
version 1
2be2085e
1 commit,
May 3, 2022
4 files
+
13
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
bob/io/base/test/test_image_support.py
+
5
−
7
View file @ 09069b09
Edit in single-file editor
Open in Web IDE
Show full file
@@ -10,10 +10,11 @@
import
os
# import bob.io.image
import
nose
import
numpy
# import bob.io.image
import
pytest
from
bob.io.base
import
load
,
write
from
..test_utils
import
datafile
,
temporary_filename
@@ -147,11 +148,8 @@ def test_image_load():
load
(
full_file
).
shape
==
(
100
,
100
)
# Testing exception
nose
.
tools
.
assert_raises
(
RuntimeError
,
lambda
x
:
load
(
os
.
path
.
splitext
(
x
)[
0
]
+
"
.unknown
"
),
full_file
,
)
with
pytest
.
raises
(
RuntimeError
):
load
(
os
.
path
.
splitext
(
full_file
)[
0
]
+
"
.unknown
"
)
def
test_image_exceptions
():
Loading