Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commitad570de
committed
Avoid unsafe assumptions about tempdir content in tests
test_new_should_raise_on_invalid_repo_location had previously usedtempfile.gettempdir() directly to get a path assumed not to be avalid repository, assuming more than necessary about the directoryin which temporary files and directories are created. A newlycreated temporary directory is now used for that check, instead.test_new_should_raise_on_non_existent_path had assumed norepos/foobar existed relative to the current directory. Typicallythere would be no such directory, but is unnecessary for the testto rely on this. A newly created temporary directory known to beempty is now used in place of the "repos" component, for that test.1 parentd7bf231 commitad570de
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
| 74 | + | |
74 | 75 |
| |
75 | 76 |
| |
76 | 77 |
| |
77 | 78 |
| |
78 | 79 |
| |
79 |
| - | |
| 80 | + | |
| 81 | + | |
80 | 82 |
| |
81 | 83 |
| |
82 |
| - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 |
| |
84 | 88 |
| |
85 | 89 |
| |
|
0 commit comments
Comments
(0)