Commit 01fb7d17f61dc8ebaf1b9083b25018554379e0b7
1 parent
8ef0f110
Update create_fake_doc
In order to work correctly with windows-based brokers. It is cherry-picked commit (89f4b136ae41dbd4cbf6de3ed8b908f0c316d81a).
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -45,7 +45,7 @@ def create_fake_doc(): |
45 | 45 | tf = NamedTemporaryFile(delete=False, suffix=suffix, prefix=prefix) |
46 | 46 | tf.write(content) |
47 | 47 | tf.close() |
48 | - return tf.name, os.path.basename(tf.name), content | |
48 | + return tf.name.replace('\\', '\\\\'), os.path.basename(tf.name), content | |
49 | 49 | |
50 | 50 | |
51 | 51 | def test_tender_data(params, periods=("enquiry", "tender")): | ... | ... |
Please
register
or
login
to post a comment