Skip to content

gh-64376: Convert the time module to the Argument Clinic #14311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Lib/unittest/test/testmock/testhelpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import inspect
import time
import math
import types
import unittest

Expand Down Expand Up @@ -886,8 +886,8 @@ def check_data_descriptor(mock_attr):


def test_autospec_on_bound_builtin_function(self):
meth = types.MethodType(time.ctime, time.time())
self.assertIsInstance(meth(), str)
meth = types.MethodType(math.log, 32)
self.assertIsInstance(meth(), float)
mocked = create_autospec(meth)

# no signature, so no spec to check against
Expand Down
Loading