From dac978b2a0a16c29eebe4a39bc4c8716f30100d5 Mon Sep 17 00:00:00 2001 From: Richard West Date: Tue, 16 Oct 2018 15:34:17 -0400 Subject: [PATCH] A test that causes a Bus Error 10 for me. This doesn't seem to fail on Master, but does on Cat, for me. --- testing/brokenTest.py | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 testing/brokenTest.py diff --git a/testing/brokenTest.py b/testing/brokenTest.py new file mode 100644 index 00000000000..4eff03b9113 --- /dev/null +++ b/testing/brokenTest.py @@ -0,0 +1,48 @@ +""" +This scripts runs tests on the database +""" +from rmgpy import settings + +import unittest +import rmgpy.molecule.group + +import nose +import nose.tools + + +class TestMoleculeGeneration(unittest.TestCase): + """ + Contains unit tests for the database for rigorous error checking. + """ + @classmethod + def setUpClass(cls): + """ + Load the database before running the tests. + """ + pass + + def test_aworking(self): + g = rmgpy.molecule.group.Group() + + # Cb-Cs from thermo groups + g.fromAdjacencyList(""" + 1 * Cb u0 {2,S} + 2 Cs u0 {1,S} + """) + + g.makeSampleMolecule() + + def test_broken(self): + g = rmgpy.molecule.group.Group() + + # Cb-Cl from thermo groups + g.fromAdjacencyList(""" + 1 * Cb u0 {2,S} + 2 Cl1s u0 {1,S} + """) + + g.makeSampleMolecule() + + +if __name__ == '__main__': + nose.run(argv=[__file__, '-v', '--nologcapture'], defaultTest=__name__)