Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lbmpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
lbmpy
Commits
2538a812
Commit
2538a812
authored
1 year ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Try to remove conftest warnings
parent
010f0bb9
No related branches found
No related tags found
1 merge request
!157
[Fix] Warning filter in fluctuating LB test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
conftest.py
+2
-2
2 additions, 2 deletions
conftest.py
with
2 additions
and
2 deletions
conftest.py
+
2
−
2
View file @
2538a812
...
@@ -126,7 +126,7 @@ class IPyNbFile(pytest.File):
...
@@ -126,7 +126,7 @@ class IPyNbFile(pytest.File):
exporter
.
exclude_markdown
=
True
exporter
.
exclude_markdown
=
True
exporter
.
exclude_input_prompt
=
True
exporter
.
exclude_input_prompt
=
True
notebook_contents
=
self
.
path
.
open
(
encoding
=
'
utf-8
'
)
notebook_contents
=
self
.
fs
path
.
open
(
encoding
=
'
utf-8
'
)
with
warnings
.
catch_warnings
():
with
warnings
.
catch_warnings
():
warnings
.
filterwarnings
(
"
ignore
"
,
"
IPython.core.inputsplitter is deprecated
"
)
warnings
.
filterwarnings
(
"
ignore
"
,
"
IPython.core.inputsplitter is deprecated
"
)
...
@@ -145,6 +145,6 @@ def pytest_collect_file(path, parent):
...
@@ -145,6 +145,6 @@ def pytest_collect_file(path, parent):
glob_exprs
=
[
"
*demo*.ipynb
"
,
"
*tutorial*.ipynb
"
,
"
test_*.ipynb
"
]
glob_exprs
=
[
"
*demo*.ipynb
"
,
"
*tutorial*.ipynb
"
,
"
test_*.ipynb
"
]
if
any
(
path
.
fnmatch
(
g
)
for
g
in
glob_exprs
):
if
any
(
path
.
fnmatch
(
g
)
for
g
in
glob_exprs
):
if
pytest_version
>=
50403
:
if
pytest_version
>=
50403
:
return
IPyNbFile
.
from_parent
(
path
=
path
,
parent
=
parent
)
return
IPyNbFile
.
from_parent
(
fs
path
=
path
,
parent
=
parent
)
else
:
else
:
return
IPyNbFile
(
path
,
parent
)
return
IPyNbFile
(
path
,
parent
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment