File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 9
9
import pytest
10
10
11
11
from libvcs import exc
12
- from libvcs ._compat import string_types
12
+ from libvcs ._compat import PY2 , string_types
13
13
from libvcs .git import GitRemote , GitRepo , extract_status
14
14
from libvcs .shortcuts import create_repo_from_pip_url
15
15
from libvcs .util import run , which
@@ -285,12 +285,19 @@ def test_extract_status():
285
285
],
286
286
[
287
287
'# branch.upstream moo/origin/myslash/remote' ,
288
- {"branch_upstream" : 'moo/origin/myslash/remote' , },
288
+ {"branch_upstream" : 'moo/origin/myslash/remote' },
289
289
],
290
290
],
291
291
)
292
292
def test_extract_status_b (fixture , expected_result ):
293
- assert expected_result .items () <= extract_status (textwrap .dedent (fixture )).items ()
293
+ if PY2 :
294
+ assert (
295
+ extract_status (textwrap .dedent (fixture )).items () <= expected_result .items ()
296
+ )
297
+ else :
298
+ assert (
299
+ extract_status (textwrap .dedent (fixture )).items () >= expected_result .items ()
300
+ )
294
301
295
302
296
303
@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments