Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1965)

Issue 9027045: Moin2.0 : IOError while testing with py.test updated as per the requirement

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by chitrankdixit
Modified:
10 years, 11 months ago
Reviewers:
thomas.j.waldmann, ThomasWaldmann, Reimar Bauer
Visibility:
Public.

Description

Moin2.0 : IOError while testing with py.test updated as per the requirement please view the file test_interwiki.py IOError fixed: 1) The program takes the current working directory. 2) Split them with delimiter '/' to make up a list. 3) Now with each directory in the list of directories made by os.getcwd(). It looks out for '.hg' folder which signifies the repository at the very first occurence it takes the directory where it is searched. 4) This will be the path required.

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -8 lines) Patch
M MoinMoin/_tests/__init__.py View 1 chunk +4 lines, -1 line 3 comments Download
M MoinMoin/_tests/ldap_testbase.py View 1 chunk +4 lines, -1 line 0 comments Download
M MoinMoin/_tests/test_test_environ.py View 1 chunk +5 lines, -2 lines 0 comments Download
M MoinMoin/util/_tests/test_interwiki.py View 2 chunks +19 lines, -4 lines 6 comments Download

Messages

Total messages: 5
Thomas.J.Waldmann
btw, i recently started some StringIO work, see the issue tracker for more infos. https://codereview.appspot.com/9027045/diff/1/MoinMoin/_tests/__init__.py ...
10 years, 11 months ago (2013-05-10 16:49:41 UTC) #1
chitrankdixit
https://codereview.appspot.com/9027045/diff/1/MoinMoin/_tests/__init__.py File MoinMoin/_tests/__init__.py (right): https://codereview.appspot.com/9027045/diff/1/MoinMoin/_tests/__init__.py#newcode15 MoinMoin/_tests/__init__.py:15: from io import StringIO So what else could be ...
10 years, 11 months ago (2013-05-10 17:15:50 UTC) #2
chitrankdixit
https://codereview.appspot.com/9027045/diff/1/MoinMoin/util/_tests/test_interwiki.py File MoinMoin/util/_tests/test_interwiki.py (right): https://codereview.appspot.com/9027045/diff/1/MoinMoin/util/_tests/test_interwiki.py#newcode199 MoinMoin/util/_tests/test_interwiki.py:199: break After using the original code(marked red) snipped the ...
10 years, 11 months ago (2013-05-10 17:38:51 UTC) #3
Thomas.J.Waldmann
https://codereview.appspot.com/9027045/diff/1/MoinMoin/_tests/__init__.py File MoinMoin/_tests/__init__.py (right): https://codereview.appspot.com/9027045/diff/1/MoinMoin/_tests/__init__.py#newcode15 MoinMoin/_tests/__init__.py:15: from io import StringIO see the patch and issue ...
10 years, 11 months ago (2013-05-10 18:11:50 UTC) #4
chitrankdixit
10 years, 11 months ago (2013-05-10 18:26:44 UTC) #5
Okay Thomas I should traceback myself why does the error occurs in my system and
understand more about the code written. 

Thanks for the precious suggestions.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b