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
OpenDAS
vision
Commits
1cd95e65
"vscode:/vscode.git/clone" did not exist on "1a6def3ddbbf560b815c03faa4a7193a0d030591"
Unverified
Commit
1cd95e65
authored
Feb 27, 2023
by
Philip Meier
Committed by
GitHub
Feb 27, 2023
Browse files
skip tests that use assert_run_python_script on windows (#7351)
parent
547dd1d0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
test/test_transforms.py
test/test_transforms.py
+5
-0
test/test_transforms_v2.py
test/test_transforms_v2.py
+9
-0
No files found.
test/test_transforms.py
View file @
1cd95e65
...
...
@@ -2,6 +2,7 @@ import math
import
os
import
random
import
re
import
sys
import
textwrap
import
warnings
from
functools
import
partial
...
...
@@ -2278,6 +2279,10 @@ def test_random_grayscale_with_grayscale_input():
),
)
@
pytest
.
mark
.
parametrize
(
"from_private"
,
(
True
,
False
))
@
pytest
.
mark
.
skipif
(
sys
.
platform
in
(
"win32"
,
"cygwin"
),
reason
=
"assert_run_python_script is broken on Windows. Possible fix in https://github.com/pytorch/vision/pull/7346"
,
)
def
test_functional_deprecation_warning
(
import_statement
,
from_private
):
if
from_private
:
import_statement
=
import_statement
.
replace
(
"functional"
,
"_functional"
)
...
...
test/test_transforms_v2.py
View file @
1cd95e65
...
...
@@ -2,6 +2,7 @@ import itertools
import
pathlib
import
random
import
re
import
sys
import
textwrap
import
warnings
from
collections
import
defaultdict
...
...
@@ -2101,6 +2102,10 @@ def test_sanitize_bounding_boxes_errors():
),
)
@
pytest
.
mark
.
parametrize
(
"call_disable_warning"
,
(
True
,
False
))
@
pytest
.
mark
.
skipif
(
sys
.
platform
in
(
"win32"
,
"cygwin"
),
reason
=
"assert_run_python_script is broken on Windows. Possible fix in https://github.com/pytorch/vision/pull/7346"
,
)
def
test_warnings_v2_namespaces
(
import_statement
,
call_disable_warning
):
if
call_disable_warning
:
source
=
f
"""
...
...
@@ -2120,6 +2125,10 @@ def test_warnings_v2_namespaces(import_statement, call_disable_warning):
assert_run_python_script
(
textwrap
.
dedent
(
source
))
@
pytest
.
mark
.
skipif
(
sys
.
platform
in
(
"win32"
,
"cygwin"
),
reason
=
"assert_run_python_script is broken on Windows. Possible fix in https://github.com/pytorch/vision/pull/7346"
,
)
def
test_no_warnings_v1_namespace
():
source
=
"""
import warnings
...
...
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