File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1628,7 +1628,8 @@ def test_requirement_file_from_url(tmpdir):
1628
1628
1629
1629
constraints = os .path .join (str (tmpdir ), "constraints.txt" )
1630
1630
with open (constraints , "w" ) as fp :
1631
- fp .write ("translate>=3.2.1,<3.6.0" )
1631
+ print ("translate>=3.2.1,<3.6.0" , file = fp )
1632
+ print ("protobuf<=3.17.3" , file = fp )
1632
1633
1633
1634
pex_file = os .path .join (str (tmpdir ), "pex" )
1634
1635
Original file line number Diff line number Diff line change 1
1
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
2
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3
3
4
+ from __future__ import print_function
5
+
4
6
import os
5
7
from textwrap import dedent
6
8
@@ -38,7 +40,8 @@ def test_undeclared_setuptools_import_on_pex_path(tmpdir):
38
40
# compilation terminated.
39
41
constraints = os .path .join (str (tmpdir ), "constraints.txt" )
40
42
with open (constraints , "w" ) as fp :
41
- fp .write ("google-crc32c==1.1.2" )
43
+ print ("google-crc32c==1.1.2" , file = fp )
44
+ print ("protobuf<=3.17.3" , file = fp )
42
45
43
46
bigquery_pex = os .path .join (str (tmpdir ), "bigquery.pex" )
44
47
run_pex_command (
You can’t perform that action at this time.
0 commit comments