Skip to content

Commit 6a255ec

Browse files
authored
[Python3] Adjust relative import statements to use relative syntax so they work with Py2 and Py3 (#32937)
* Rework a couple of benchmarks to work with both Python2 and Python3 * Adjust relative import statements to use relative syntax Importing files from "the same directory as this file" was implicitly supported in Python2.7 but not Python3. The syntax here works for both.
1 parent 61e77bd commit 6a255ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

utils/update_checkout/tests/test_clone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# ===----------------------------------------------------------------------===#
1212

13-
import scheme_mock
13+
from . import scheme_mock
1414

1515

1616
class CloneTestCase(scheme_mock.SchemeMockTestCase):

utils/update_checkout/tests/test_dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# ===----------------------------------------------------------------------===#
1212

13-
import scheme_mock
13+
from . import scheme_mock
1414

1515

1616
class DumpTestCase(scheme_mock.SchemeMockTestCase):

0 commit comments

Comments
 (0)