@@ -43,13 +43,14 @@ set_status
43
43
# trax tests need C++
44
44
# others (see below) enable eager, so can't be tested along with the others in
45
45
# pytest
46
- pytest \
46
+ pytest --disable-warnings \
47
47
--ignore=tensor2tensor/bin/t2t_trainer_test.py \
48
48
--ignore=tensor2tensor/data_generators/algorithmic_math_test.py \
49
49
--ignore=tensor2tensor/data_generators/allen_brain_test.py \
50
50
--ignore=tensor2tensor/data_generators/ops/pack_sequences_ops_test.py \
51
51
--ignore=tensor2tensor/data_generators/ops/subword_text_encoder_ops_test.py \
52
52
--ignore=tensor2tensor/data_generators/problem_test.py \
53
+ --ignore=tensor2tensor/envs/mujoco_problems_test.py \
53
54
--ignore=tensor2tensor/layers/bayes_test.py \
54
55
--ignore=tensor2tensor/layers/common_attention_test.py \
55
56
--ignore=tensor2tensor/layers/common_layers_test.py \
@@ -66,10 +67,10 @@ pytest \
66
67
--ignore=tensor2tensor/models/video/nfg_uncond_test.py \
67
68
--ignore=tensor2tensor/rl \
68
69
--ignore=tensor2tensor/trax \
70
+ --ignore=tensor2tensor/utils/registry_test.py \
69
71
--ignore=tensor2tensor/utils/t2t_model_test.py \
70
72
--ignore=tensor2tensor/utils/test_utils.py \
71
73
--ignore=tensor2tensor/utils/test_utils_test.py \
72
- --ignore=tensor2tensor/utils/registry_test.py \
73
74
--ignore=tensor2tensor/utils/trainer_lib_test.py \
74
75
--ignore=tensor2tensor/visualization/visualization_test.py \
75
76
--deselect=tensor2tensor/utils/beam_search_test.py::BeamSearchTest::testTPUBeam
@@ -80,7 +81,7 @@ set_status
80
81
# ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jaxlib/_pywrap_xla.so)
81
82
82
83
# These tests enable eager, so are tested separately.
83
- pytest \
84
+ pytest --disable-warnings \
84
85
tensor2tensor/data_generators/problem_test.py \
85
86
tensor2tensor/layers/bayes_test.py \
86
87
tensor2tensor/layers/common_attention_test.py \
@@ -94,17 +95,18 @@ pytest \
94
95
tensor2tensor/utils/t2t_model_test.py \
95
96
tensor2tensor/utils/test_utils_test.py \
96
97
--deselect=tensor2tensor/layers/common_video_test.py::CommonVideoTest::testGifSummary
98
+ set_status
97
99
98
- pytest tensor2tensor/utils/registry_test.py
100
+ pytest --disable-warnings tensor2tensor/utils/registry_test.py
99
101
set_status
100
102
101
- pytest tensor2tensor/utils/trainer_lib_test.py
103
+ pytest --disable-warnings tensor2tensor/utils/trainer_lib_test.py
102
104
set_status
103
105
104
- pytest tensor2tensor/visualization/visualization_test.py
106
+ pytest --disable-warnings tensor2tensor/visualization/visualization_test.py
105
107
set_status
106
108
107
- pytest tensor2tensor/data_generators/allen_brain_test.py
109
+ pytest --disable-warnings tensor2tensor/data_generators/allen_brain_test.py
108
110
set_status
109
111
110
112
@@ -113,17 +115,19 @@ if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]] && [[ "$TF_VERSION" == "tf-nightly"
113
115
then
114
116
# Ignores:
115
117
# * Glow requires the CIFAR-10 dataset to be generated
116
- pytest tensor2tensor/models/research \
118
+ pytest --disable-warnings tensor2tensor/models/research \
117
119
--ignore=tensor2tensor/models/research/glow_test.py
118
120
set_status
119
121
fi
120
122
121
123
if [[ " $TRAVIS_PYTHON_VERSION " == " 2.7" ]] && [[ " $TF_VERSION " == " $TF_LATEST " ]]
122
124
then
123
125
# TODO(afrozm): Once we drop support for 1.10 we can get rid of this.
124
- pytest tensor2tensor/utils/beam_search_test.py::BeamSearchTest::testTPUBeam
126
+ pytest --disable-warnings \
127
+ tensor2tensor/utils/beam_search_test.py::BeamSearchTest::testTPUBeam
125
128
set_status
126
129
# TODO(afrozm): Enable other tests in the RL directory.
130
+ # Can't add disable warning here since it parses flags.
127
131
pytest tensor2tensor/rl/trainer_model_based_test.py
128
132
set_status
129
133
jupyter nbconvert --ExecutePreprocessor.timeout=600 --to notebook --execute tensor2tensor/notebooks/hello_t2t.ipynb
0 commit comments