File: remove-python3-mock

package info (click to toggle)
psychopy 2023.2.4%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 124,456 kB
  • sloc: python: 126,213; javascript: 11,982; makefile: 152; sh: 120; xml: 9
file content (15 lines) | stat: -rw-r--r-- 395 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
From: Alexandre Detiste
Subject: remove usage of python3-mock
Forwarded: no need, already removed upstream

--- a/psychopy/tests/test_hardware/test_ports.py
+++ b/psychopy/tests/test_hardware/test_ports.py
@@ -1,7 +1,7 @@
 import psychopy.hardware as hw
 import pytest
 try:
-    import mock
+    import unittest.mock as mock
 except Exception:
     def require_mock(fn):
         def _inner():