We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc3feef commit 64967c7Copy full SHA for 64967c7
tests/unit/test_req_file.py
@@ -1,7 +1,6 @@
1
import collections
2
import logging
3
import os
4
-import subprocess
5
import textwrap
6
from optparse import Values
7
from pathlib import Path
@@ -880,14 +879,4 @@ def test_install_requirements_with_options(
880
879
)
881
882
883
- req.source_dir = os.curdir
884
- with mock.patch.object(subprocess, "Popen") as popen:
885
- popen.return_value.stdout.readline.return_value = b""
886
- try:
887
- req.install([])
888
- except Exception:
889
- pass
890
-
891
- last_call = popen.call_args_list[-1]
892
- args = last_call[0][0]
893
- assert 0 < args.index(global_option) < args.index("install")
+ assert req.global_options == [global_option]
0 commit comments