Skip to content

Commit 2f1338b

Browse files
authored
Merge pull request #10544 from OPpuolitaival/py3_fixes
Py3 fixes for test scripts
2 parents 42a9a7a + 842d145 commit 2f1338b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TESTS/host_tests/rtc_reset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def setup(self):
4040
"""Register callbacks required for the test"""
4141
self._error = False
4242
generator = self.rtc_reset_test()
43-
generator.next()
43+
next(generator)
4444

4545
def run_gen(key, value, time):
4646
"""Run the generator, and fail testing if the iterator stops"""

features/storage/filesystem/littlefs/TESTS/host_tests/unexpected_reset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def setup(self):
3838
"""Register callbacks required for the test"""
3939
self._error = False
4040
generator = self.unexpected_reset_test()
41-
generator.next()
41+
next(generator)
4242

4343
def run_gen(key, value, time):
4444
"""Run the generator, and fail testing if the iterator stops"""

0 commit comments

Comments
 (0)