Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82051
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone01.am1.xlned.com!bcyclone01.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <samp4040@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.025 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'subject:module': 0.09; 'subject:question': 0.10; 'python': 0.11; '__init__.py': 0.16; 'pytest': 0.16; 'repl': 0.16; 'subject:import': 0.16; 'subject:questions': 0.16; 'import': 0.22; 'help!': 0.26; 'this:': 0.26; 'message-id:@mail.gmail.com': 0.30; 'open': 0.33; 'guess': 0.33; 'received:google.com': 0.35; 'there': 0.35; 'thanks': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'within': 0.65; 'statement,': 0.68 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=qFpxxBuyHIuqR2VZXiRZfYEXRej4ZZ09muM670LnjTI=; b=zpXq9K0Xrb/u0hdTKhVRazcqrfebURRhK/8IfM+lkUxQgwSxAY/JCpUrWhEqba/bwO XHfLx45ei98RN2V9T+vT3gTYVJGIJBqQRZMTrXvnG5bPiq8ChqArHZS48Aac3f/fvfbk miXMt4ooyRX+SSLme55h4sHtLmdECoWA9GOVr86xdhNj0BEdJXzUF4qcQGEmCldMzq+C SYgFXPvtT/lVyDIABDAZlGlkkyMzb5srK+/cLgV/l0HkrSZFPKCUEO+bneDvbLtPPvo2 BbN2IjhgWa2r3cAor+qmhEAeshnvAYLFB1Ol5IQ3X6+uoUv9IAKYjAlONHErqlSgUu6c whCg== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.79.193 with SMTP id l1mr5759932igx.30.1417841409578; Fri, 05 Dec 2014 20:50:09 -0800 (PST) |
| Date | Fri, 5 Dec 2014 23:50:09 -0500 |
| Subject | module import questions and question about pytest and module imports |
| From | sam pendleton <samp4040@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=UTF-8 |
| X-Mailman-Approved-At | Sun, 07 Dec 2014 11:48:47 +0100 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16663.1417949329.18130.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1417949329 news.xs4all.nl 2895 [2001:888:2000:d::a6]:44135 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 3174 |
| X-Received-Body-CRC | 1954990805 |
| Xref | csiph.com comp.lang.python:82051 |
Show key headers only | View raw
garage/
|- __init__.py
|- cars/
|- __init__.py
|- hummer.py
tests/
|- test_cars.py
at the top of test_cars.py, there is this:
from garage.cars import hummer
pytest is on this import statement, so i guess it's incorrect.
what should it be?
if i open a python repl within tests/, how can i say import hummer.py?
do i need to do anything to make pytest aware of hummer.py?
thanks for the help!
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
module import questions and question about pytest and module imports sam pendleton <samp4040@gmail.com> - 2014-12-05 23:50 -0500
csiph-web