This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年02月27日 11:22 by eric.araujo, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (1) | |||
|---|---|---|---|
| msg154453 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2012年02月27日 11:22 | |
Many packaging tests use functions like os.mkdir and open to create files in order to test commands or actions, or slightly higher-level helpers like packaging.tests.support.TempdirManager.write_file. I think this could be much more automated. There should be an helper function which could accept a string with a custom format describing directories, files and their contents, then create the files in a temp directory and later cleans it all. Likewise, it should be easier to check what new files are created (i.e. in the build or dist directory) and what their contents are. My ultimate goal is to move from low-level tests which use command objects directly to higher-level tests which actually run the pysetup script and check the results, so that tests get closer to what people do. This will also remove cruft in the tests, and let us change details more easily (because we’ll be testing behavior, not internal attributes or exact output). |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:27 | admin | set | github: 58348 |
| 2014年03月13日 00:59:45 | eric.araujo | set | status: open -> closed resolution: out of date stage: needs patch -> resolved |
| 2012年03月04日 08:29:05 | tshepang | set | nosy:
+ tshepang |
| 2012年02月27日 11:29:52 | nadeem.vawda | set | nosy:
+ nadeem.vawda |
| 2012年02月27日 11:22:09 | eric.araujo | create | |