mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The `mock.assert_called()` method was added in Python 3.6, so fails on some of our older CI machines that use Python 3.5. `assert(mock.called)` is precisely equivalent and works with older versions of the Python unittest.mock library.