Skip to content

Commit c9deca6

Browse files
yileicopybara-github
authored andcommitted
Update this test, the previous way of mocking makes this test fail on Python 3.11.
PiperOrigin-RevId: 571947232 Change-Id: I125e0733074bb710492065644e4b37571006cb61
1 parent dc50409 commit c9deca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dm_control/viewer/gui/base_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
_EPSILON = 1e-7
3434

3535

36-
@mock.patch(base.__name__ + '.time')
36+
@mock.patch.object(base, 'time')
3737
class DoubleClickDetectorTest(absltest.TestCase):
3838

3939
def setUp(self):

0 commit comments

Comments
 (0)