Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 2e51d88

Browse files
sebixboogheta
authored andcommitted
test_cmdline: use unittest.mock as fallback
fixes #441
1 parent 6a868f4 commit 2e51d88

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/test_cmdline.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
import json
44
import re
55
import unittest
6-
from mock import patch
6+
try:
7+
from mock import patch
8+
except ImportError:
9+
from unittest.mock import patch
710

811
try:
912
import HTMLParser

0 commit comments

Comments
 (0)