File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed
Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 3232 python -m pip install pytest psutil
3333 - name : Test
3434 run : |
35+ # Disable the pyexiv2 in current repository, to use the pyexiv2 installed by pip
36+ python -c "import os; os.rename('pyexiv2/__init__.py', 'pyexiv2/disable__init__.py')"
3537 pytest -sv
36- env :
37- FROM_SOURCE_CODE_IMPORT_PYEXIV2 : False
3838
3939 on_macos :
4040 strategy :
5858 - name : Test
5959 run : |
6060 brew install inih
61+ # Disable the pyexiv2 in current repository, to use the pyexiv2 installed by pip
62+ python -c "import os; os.rename('pyexiv2/__init__.py', 'pyexiv2/disable__init__.py')"
6163 pytest -sv
62- env :
63- FROM_SOURCE_CODE_IMPORT_PYEXIV2 : False
6464
6565 on_windows :
6666 strategy :
8282 python -m pip install pytest psutil
8383 - name : Test
8484 run : |
85+ # Disable the pyexiv2 in current repository, to use the pyexiv2 installed by pip
86+ python -c "import os; os.rename('pyexiv2/__init__.py', 'pyexiv2/disable__init__.py')"
8587 pytest -sv
86- env :
87- FROM_SOURCE_CODE_IMPORT_PYEXIV2 : False
Original file line number Diff line number Diff line change 1010import pytest
1111
1212from . import data
13+ from pyexiv2 import *
1314
1415
1516class ENV :
@@ -22,12 +23,6 @@ class ENV:
2223 test_img_copy = os .path .join (test_dir , 'test-copy.jpg' )
2324
2425
25- if os .environ .get ('FROM_SOURCE_CODE_IMPORT_PYEXIV2' , 'True' ):
26- from .. import *
27- else :
28- from pyexiv2 import *
29-
30-
3126def setup_function ():
3227 if ENV .skip_test :
3328 pytest .skip ()
You can’t perform that action at this time.
0 commit comments