Fix support for pip>=10, Fixes: #123

This commit is contained in:
ziajka 2018-05-15 14:05:24 +02:00
parent e465be94b4
commit 52456921d1
2 changed files with 2 additions and 3 deletions

View File

@ -17,7 +17,6 @@
import os
import re
import pip
import sys
import shutil
import psutil
@ -95,7 +94,7 @@ def download_command(arguments):
else:
requirements = 'requirements.txt'
pip.main(['install', '-r', os.path.join(source_directory, requirements)])
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '-r', os.path.join(source_directory, requirements)])
def build_command(arguments):

View File

@ -104,7 +104,7 @@ describe('InterfaceLabelsWidget', () => {
links[0].nodes[0].label.is_selected = true;
widget.draw(linksEnter);
const drew = svg.canvas.selectAll<SVGGElement, InterfaceLabel>('g.interface_label_container');
const sourceInterface = drew.nodes()[0];
expect(sourceInterface.getAttribute('class')).toContain('selected');