-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix windows #157
Merged
Merged
Fix windows #157
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
cf5aa83
Remove invalid 'x' flag to file.write on Windows
nicoddemus cd13abe
Skip test_log.py tests on Windows because 'syslog' is not available
nicoddemus d57aedb
Skip TestSvnWCAuthFunctional.test_switch when executing under xdist
nicoddemus cd23b8d
Skip tests in test_py_imports related to py.log on Windows
nicoddemus 5a2f1ed
Skip tests in test_svnwc on Windows
nicoddemus f9c5d6a
Fix skip() call in test_svnauth
nicoddemus 5c1a797
Skip test_warning on Windows in pytest >= 3.1
nicoddemus 110bc59
Change message check about ZeroDivisionError so it works in multiple …
nicoddemus 1eda5c9
Use an xfail mark instead of a fixture in test_svnwc
nicoddemus 3cfe7c6
Change fixture to a mark in test_warning
nicoddemus 9a808f1
Change mark from test_status_update to an imperative xfail
nicoddemus 6fc21fa
Fix file locking for tmpdir on Windows
nicoddemus ad80946
Use py.error.checked_call when creating the lock file for tmpdir
nicoddemus bdc9112
Skip multiprocess tmpdir creation safety test on Windows/Python 2.6
nicoddemus 2d30cde
Add py.error.EBUSY to the list of possible errors when creating locks
nicoddemus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,12 @@ | |
from py._path import svnwc as svncommon | ||
from svntestbase import CommonSvnTests | ||
|
||
|
||
pytestmark = pytest.mark.xfail(sys.platform.startswith('win'), | ||
reason='#161 all tests in this file are failing on Windows', | ||
run=False) | ||
|
||
|
||
def test_make_repo(path1, tmpdir): | ||
repo = tmpdir.join("repo") | ||
py.process.cmdexec('svnadmin create %s' % repo) | ||
|
@@ -106,8 +112,9 @@ def test_status_unchanged(self, path1): | |
assert r.join('sampledir/otherfile').basename in [item.basename | ||
for item in s.unchanged] | ||
|
||
@pytest.mark.xfail(reason="svn-1.7 has buggy 'status --xml' output") | ||
def test_status_update(self, path1): | ||
# not a mark because the global "pytestmark" will end up overwriting a mark here | ||
pytest.xfail("svn-1.7 has buggy 'status --xml' output") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is fixed in recent pytest and should be in the next feature release (the evaluator refactoring) |
||
r = path1 | ||
try: | ||
r.update(rev=1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason why this test was not catching the regression in the previous locking code for Windows is that it was being skipped on Windows (this class has the
pytestmark = skiponwin32
mark).