{"issue":{"created_at":"2011-12-14T15:59:50Z","state":"open","updated_at":"2011-12-14T15:59:53Z","comments":5,"user":{"gravatar_id":"86e49052bd9a5fb3eabfd7368b68bbb7","id":34519,"url":"https://api.github.com/users/jpellerin","login":"jpellerin","avatar_url":"https://secure.gravatar.com/avatar/86e49052bd9a5fb3eabfd7368b68bbb7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"<b>What steps will reproduce the problem?</b>\n\n1. create a new virtualenv on Windows.  MAKE SURE there is an uppercase letter in the path.\n2. checkout this package: https://bitbucket.org/rsyring/nose-import-bug-example\n3. Activiate venv\n4. python setup.py develop\n5. cd bwimpt\n6. nosetests -s tests/test_import.py \n\nOn Linux, you will see something like the following:\n\nid from app 31207560\nfrom test 31207560\nid from app 31207560\n\n----------------------------------------------------------------------\nRan 0 tests in 0.000s\n\nOK\n\nOn Windows, you will see that the app ids are not the same and will get an assertion error.\n\n<b>What version of the product are you using? On what operating system?</b>\n\nVersions: both 0.11.4 and tip as of 11/22/10\nOS: Linux & Windows, but the problem only shows up on Windows\n\n<b>Please provide any additional information below.</b>\n\nIf you use a fix for issue #293 and use the --first-package-wins option, this bug disappears.\n\nI believe I have tracked the problem down to the code in importer.py that replaces modules.  It uses Importer.sameModule() which is using a comparison of file paths that is case sensitive.\n\nMy fix is here: https://bitbucket.org/rsyring/blaze-nose/changeset/703767dd9288\n\nFWIW, IMO, this is a pretty significant bug.  The result in my application during testing was that 'import foo.bar' would fail with the message that module foo did not have an attribute bar.  But we knew the paths were correct b/c the same code worked in production and during testing when using Linux systems.  Whats worse was that it just didn't make sense...it took us several days to finally minimalize the test case enough to figure out it was a bug in Nose.\n\nThanks for your work on this project, I have really gotten into unit & functional testing since I came into contact with nose and have appreciated its flexibility and utility.\n\nGoogle Code Info:\nIssue #: 376\nAuthor: rsyr...@gmail.com\nCreated On: 2010-11-23T06:53:03.000Z\nClosed On: ","assignee":{"gravatar_id":"86e49052bd9a5fb3eabfd7368b68bbb7","id":34519,"url":"https://api.github.com/users/jpellerin","login":"jpellerin","avatar_url":"https://secure.gravatar.com/avatar/86e49052bd9a5fb3eabfd7368b68bbb7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2553384,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":118,"title":"case sensitive file path comparison in Importer.sameModule() can cause modules to be loaded twice on Windows","html_url":"https://github.com/nose-devs/nose/issues/118","closed_at":null,"url":"https://api.github.com/repos/nose-devs/nose/issues/118","milestone":null},"action":"created","comment":{"created_at":"2011-12-14T15:59:52Z","updated_at":"2011-12-14T15:59:52Z","user":{"gravatar_id":"86e49052bd9a5fb3eabfd7368b68bbb7","id":34519,"url":"https://api.github.com/users/jpellerin","login":"jpellerin","avatar_url":"https://secure.gravatar.com/avatar/86e49052bd9a5fb3eabfd7368b68bbb7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Just wondering if I can encourage some movement on this bug.  It makes Windows testing annoying when doing things manually, but is now causing some further grief with multi-platform configurations w/ Jenkins.\n\nThanks.\n\nGoogle Code Info:\nAuthor: rsyr...@gmail.com\nCreated On: 2011-06-17T06:43:50.000Z","id":3141983,"url":"https://api.github.com/repos/nose-devs/nose/issues/comments/3141983"}}