Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/tests/startup.py
4045 views
1
r"""
2
3
Test that on sage.math (a fast computer), the Sage startup time (from
4
a warm cache) has not got out of hand.::
5
6
sage: if os.uname()[1] == 'sage.math.washington.edu':
7
... print float(os.popen("sage -startuptime>/dev/null; sage -startuptime|grep sage.all").readlines()[0].split()[1]) < 2.0
8
... else: print True # nothing when not on sage.math
9
True
10
11
Ensure that certain modules are not loaded on startup::
12
13
sage: sage0("'numpy' in sys.modules")
14
False
15
"""
16
17