yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #11892
[Branch ~yade-pkg/yade/git-trunk] Rev 3603: Remove DirSearchYade, MicroMacroAnalysis and someFile.pdf
------------------------------------------------------------
revno: 3603
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Mon 2015-03-02 15:54:02 +0100
message:
Remove DirSearchYade, MicroMacroAnalysis and someFile.pdf
These fails are polluting the current directory, if
the command --test was executed. Remove them.
modified:
core/main/main.py.in
py/plot.py
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'core/main/main.py.in'
--- core/main/main.py.in 2014-07-22 17:23:17 +0000
+++ core/main/main.py.in 2015-03-02 14:54:02 +0000
@@ -96,6 +96,8 @@
import traceback; traceback.print_exc()
print 20*'*'+' Thank you '+20*'*'
sys.exit(2)
+ os.remove('DirSearchYade')
+ os.remove('MicroMacroAnalysis')
if result.wasSuccessful():
print "*** ALL TESTS PASSED ***"
sys.exit(0)
=== modified file 'py/plot.py'
--- py/plot.py 2015-03-02 14:54:02 +0000
+++ py/plot.py 2015-03-02 14:54:02 +0000
@@ -586,6 +586,7 @@
>>> import os
>>> os.path.exists('someFile.pdf')
True
+ >>> os.remove('someFile.pdf')
to save the figure to file automatically.