Skip to content

Commit 27a9a22

Browse files
llcourageLIT team
authored andcommitted
add import of io
PiperOrigin-RevId: 757223579
1 parent a32d30c commit 27a9a22

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

lit_nlp/examples/gcp/model_server_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
# ==============================================================================
1515

16+
import io
1617
import os
1718
from unittest import mock
1819

@@ -30,6 +31,7 @@ class TestWSGIApp(parameterized.TestCase):
3031
def setUpClass(cls):
3132
super().setUpClass()
3233

34+
_ = io.StringIO('temp data')
3335
test_model_name = 'lit_on_gcp_test_model'
3436
sal_name, tok_name = pd_utils.generate_model_group_names(test_model_name)
3537
test_model_config = f'{test_model_name}:test_model_path'

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ test = [
115115
"lime==0.2.0.1",
116116
"pytest>=7.4.0,<8.0.0",
117117
"webtest>=2.0",
118+
"decorator>=4.4.0",
119+
"contextlib2>=21.6.0",
118120
]
119121
# LINT.ThenChange(./requirements_test.txt)
120122

requirements_test.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ lime==0.2.0.1
2020
pytest>=7.4.0,<8.0.0
2121
umap-learn==0.5.6
2222
webtest>=2.0
23+
decorator>=4.4.0
24+
contextlib2>=21.6.0
2325
# LINT.ThenChange(./pyproject.toml)

0 commit comments

Comments
 (0)