Esempio n. 1
0
 def test_main(self):
     # just making sure _main() runs and returns things in the stdout
     with captured_stdout() as output:
         _main()
     self.assertTrue(len(output.getvalue().split('\n')) > 0)
Esempio n. 2
0
 def update_event(self, inp=-1):
     self.set_output_val(0, sysconfig._main())
 def test_main(self):
     with captured_stdout() as output:
         _main()
     self.assertTrue(len(output.getvalue().split('\n')) > 0)
 def test_main(self):
     # just making sure _main() runs and returns things in the stdout
     with captured_stdout() as output:
         _main()
     self.assertTrue(len(output.getvalue().split('\n')) > 0)
"""example file for loading natlink from the default (fallback) location

It gives configuration information

When in trouble, rename this file to "_information_config.py" and rerun Dragon.
Otherwise, this file will not be loaded from this location.
"""
#pylint:disable=W0212
import sys
import sysconfig
from pprint import pprint

print()
print()
print("I'm _information_config.py and I'm being loaded, too, on my own.")
print()
print("This is your windows version from sys.getwindowsversion():")
print("---------------------------------------------------")
print(f'{sys.getwindowsversion()}')
print()
print("This is your Python configuration as per sysconfig:")
print("---------------------------------------------------")
sysconfig._main()
print("This is your Python system path sys.path:")
print("-----------------------------------------")
pprint(sys.path)
print("End of _information_config.py info.")
print("-----------------------------")