@@ -386,7 +386,7 @@ def test_constraints_constrain_to_local_editable(
386
386
'install' , '--no-index' , '-f' , data .find_links , '-c' ,
387
387
script .scratch_path / 'constraints.txt' , 'singlemodule' ,
388
388
allow_stderr_warning = True ,
389
- expect_error = use_legacy_resolver
389
+ expect_error = not use_legacy_resolver
390
390
)
391
391
if not use_legacy_resolver :
392
392
assert 'Links are not allowed as constraints' in result .stderr
@@ -403,7 +403,7 @@ def test_constraints_constrain_to_local(script, data, use_legacy_resolver):
403
403
'install' , '--no-index' , '-f' , data .find_links , '-c' ,
404
404
script .scratch_path / 'constraints.txt' , 'singlemodule' ,
405
405
allow_stderr_warning = True ,
406
- expect_error = use_legacy_resolver
406
+ expect_error = not use_legacy_resolver
407
407
)
408
408
if not use_legacy_resolver :
409
409
assert 'Links are not allowed as constraints' in result .stderr
@@ -419,7 +419,7 @@ def test_constrained_to_url_install_same_url(script, data, use_legacy_resolver):
419
419
'install' , '--no-index' , '-f' , data .find_links , '-c' ,
420
420
script .scratch_path / 'constraints.txt' , to_install ,
421
421
allow_stderr_warning = True ,
422
- expect_error = use_legacy_resolver
422
+ expect_error = not use_legacy_resolver
423
423
)
424
424
if not use_legacy_resolver :
425
425
assert 'Links are not allowed as constraints' in result .stderr
@@ -470,7 +470,7 @@ def test_install_with_extras_from_constraints(script, data, use_legacy_resolver)
470
470
result = script .pip_install_local (
471
471
'-c' , script .scratch_path / 'constraints.txt' , 'LocalExtras' ,
472
472
allow_stderr_warning = True ,
473
- expect_error = use_legacy_resolver
473
+ expect_error = not use_legacy_resolver
474
474
)
475
475
if not use_legacy_resolver :
476
476
assert 'Links are not allowed as constraints' in result .stderr
@@ -502,7 +502,7 @@ def test_install_with_extras_joined(script, data, use_legacy_resolver):
502
502
result = script .pip_install_local (
503
503
'-c' , script .scratch_path / 'constraints.txt' , 'LocalExtras[baz]' ,
504
504
allow_stderr_warning = True ,
505
- expect_error = use_legacy_resolver
505
+ expect_error = not use_legacy_resolver
506
506
)
507
507
if not use_legacy_resolver :
508
508
assert 'Links are not allowed as constraints' in result .stderr
@@ -519,7 +519,7 @@ def test_install_with_extras_editable_joined(script, data, use_legacy_resolver):
519
519
result = script .pip_install_local (
520
520
'-c' , script .scratch_path / 'constraints.txt' , 'LocalExtras[baz]' ,
521
521
allow_stderr_warning = True ,
522
- expect_error = use_legacy_resolver
522
+ expect_error = not use_legacy_resolver
523
523
)
524
524
if not use_legacy_resolver :
525
525
assert 'Links are not allowed as constraints' in result .stderr
@@ -558,7 +558,7 @@ def test_install_distribution_union_with_constraints(
558
558
result = script .pip_install_local (
559
559
'-c' , script .scratch_path / 'constraints.txt' , to_install + '[baz]' ,
560
560
allow_stderr_warning = True ,
561
- expect_error = use_legacy_resolver
561
+ expect_error = not use_legacy_resolver
562
562
)
563
563
if not use_legacy_resolver :
564
564
msg = 'Unnamed requirements are not allowed as constraints'
@@ -578,7 +578,7 @@ def test_install_distribution_union_with_versions(
578
578
result = script .pip_install_local (
579
579
to_install_001 + "[bar]" ,
580
580
to_install_002 + "[baz]" ,
581
- expect_error = use_legacy_resolver ,
581
+ expect_error = not use_legacy_resolver ,
582
582
)
583
583
if not use_legacy_resolver :
584
584
assert (
0 commit comments