Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
4c05adef
Unverified
Commit
4c05adef
authored
Nov 08, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests on Windows
parent
69a6bbe9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
poetry/utils/_compat.py
+6
-6
tests/installation/test_installer.py
+4
-1
No files found.
poetry/utils/_compat.py
View file @
4c05adef
import
sys
try
:
import
pathlib2
from
pathlib2
import
Path
except
ImportError
:
from
pathlib
import
Path
try
:
from
functools32
import
lru_cache
except
ImportError
:
from
functools
import
lru_cache
...
...
@@ -26,6 +20,12 @@ PY35 = sys.version_info >= (3, 5)
PY36
=
sys
.
version_info
>=
(
3
,
6
)
if
PY35
:
from
pathlib
import
Path
else
:
from
pathlib2
import
Path
def
decode
(
string
,
encodings
=
None
):
if
not
PY2
and
not
isinstance
(
string
,
bytes
):
return
string
...
...
tests/installation/test_installer.py
View file @
4c05adef
...
...
@@ -91,7 +91,10 @@ def setup():
@pytest.fixture
()
def
package
():
return
ProjectPackage
(
"root"
,
"1.0"
)
p
=
ProjectPackage
(
"root"
,
"1.0"
)
p
.
root_dir
=
Path
.
cwd
()
return
p
@pytest.fixture
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment