Skip to content

Commit 02b481a

Browse files
committed
Update copyright source headers in issues tests files
1 parent e410bd3 commit 02b481a

File tree

5 files changed

+110
-85
lines changed

5 files changed

+110
-85
lines changed

tests/issues/test_bug21449207.py

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
# -*- coding: utf-8 -*-
2-
# MySQL Connector/Python - MySQL driver written in Python.
3-
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
4-
5-
# MySQL Connector/Python is licensed under the terms of the GPLv2
6-
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
7-
# MySQL Connectors. There are special exceptions to the terms and
8-
# conditions of the GPLv2 as it is applied to this software, see the
9-
# FOSS License Exception
10-
# <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
2+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
113
#
124
# This program is free software; you can redistribute it and/or modify
13-
# it under the terms of the GNU General Public License as published by
14-
# the Free Software Foundation.
5+
# it under the terms of the GNU General Public License, version 2.0, as
6+
# published by the Free Software Foundation.
7+
#
8+
# This program is also distributed with certain software (including
9+
# but not limited to OpenSSL) that is licensed under separate terms,
10+
# as designated in a particular file or component or in included license
11+
# documentation. The authors of MySQL hereby grant you an
12+
# additional permission to link the program and your derivative works
13+
# with the separately licensed software that they have included with
14+
# MySQL.
15+
#
16+
# Without limiting anything contained in the foregoing, this file,
17+
# which is part of MySQL Connector/Python, is also subject to the
18+
# Universal FOSS Exception, version 1.0, a copy of which can be found at
19+
# http://oss.oracle.com/licenses/universal-foss-exception.
1520
#
16-
# This program is distributed in the hope that it will be useful,
17-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
# GNU General Public License for more details.
21+
# This program is distributed in the hope that it will be useful, but
22+
# WITHOUT ANY WARRANTY; without even the implied warranty of
23+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24+
# See the GNU General Public License, version 2.0, for more details.
2025
#
2126
# You should have received a copy of the GNU General Public License
22-
# along with this program; if not, write to the Free Software
23-
# Foundation, Incur., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27+
# along with this program; if not, write to the Free Software Foundation, Inc.,
28+
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2429

2530
import mysql.connector
2631
from tests import foreach_cnx, cnx_config

tests/issues/test_bug21449996.py

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
# -*- coding: utf-8 -*-
2-
# MySQL Connector/Python - MySQL driver written in Python.
32
# Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
4-
5-
# MySQL Connector/Python is licensed under the terms of the GPLv2
6-
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
7-
# MySQL Connectors. There are special exceptions to the terms and
8-
# conditions of the GPLv2 as it is applied to this software, see the
9-
# FOSS License Exception
10-
# <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
113
#
124
# This program is free software; you can redistribute it and/or modify
13-
# it under the terms of the GNU General Public License as published by
14-
# the Free Software Foundation.
5+
# it under the terms of the GNU General Public License, version 2.0, as
6+
# published by the Free Software Foundation.
7+
#
8+
# This program is also distributed with certain software (including
9+
# but not limited to OpenSSL) that is licensed under separate terms,
10+
# as designated in a particular file or component or in included license
11+
# documentation. The authors of MySQL hereby grant you an
12+
# additional permission to link the program and your derivative works
13+
# with the separately licensed software that they have included with
14+
# MySQL.
15+
#
16+
# Without limiting anything contained in the foregoing, this file,
17+
# which is part of MySQL Connector/Python, is also subject to the
18+
# Universal FOSS Exception, version 1.0, a copy of which can be found at
19+
# http://oss.oracle.com/licenses/universal-foss-exception.
1520
#
16-
# This program is distributed in the hope that it will be useful,
17-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
# GNU General Public License for more details.
21+
# This program is distributed in the hope that it will be useful, but
22+
# WITHOUT ANY WARRANTY; without even the implied warranty of
23+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24+
# See the GNU General Public License, version 2.0, for more details.
2025
#
2126
# You should have received a copy of the GNU General Public License
22-
# along with this program; if not, write to the Free Software
23-
# Foundation, Incur., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27+
# along with this program; if not, write to the Free Software Foundation, Inc.,
28+
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2429

2530
import mysql.connector
2631
from tests import foreach_cnx
@@ -56,4 +61,4 @@ def test_load_data_compressed(self):
5661
self.fail(exc)
5762

5863
cur.execute("SELECT COUNT(*) FROM %s" % self.table_name)
59-
self.assertEqual(11486, cur.fetchone()[0])
64+
self.assertEqual(11486, cur.fetchone()[0])

tests/issues/test_bug21879859.py

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
# -*- coding: utf-8 -*-
2-
# MySQL Connector/Python - MySQL driver written in Python.
3-
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
4-
5-
# MySQL Connector/Python is licensed under the terms of the GPLv2
6-
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
7-
# MySQL Connectors. There are special exceptions to the terms and
8-
# conditions of the GPLv2 as it is applied to this software, see the
9-
# FOSS License Exception
10-
# <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
2+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
113
#
124
# This program is free software; you can redistribute it and/or modify
13-
# it under the terms of the GNU General Public License as published by
14-
# the Free Software Foundation.
5+
# it under the terms of the GNU General Public License, version 2.0, as
6+
# published by the Free Software Foundation.
7+
#
8+
# This program is also distributed with certain software (including
9+
# but not limited to OpenSSL) that is licensed under separate terms,
10+
# as designated in a particular file or component or in included license
11+
# documentation. The authors of MySQL hereby grant you an
12+
# additional permission to link the program and your derivative works
13+
# with the separately licensed software that they have included with
14+
# MySQL.
15+
#
16+
# Without limiting anything contained in the foregoing, this file,
17+
# which is part of MySQL Connector/Python, is also subject to the
18+
# Universal FOSS Exception, version 1.0, a copy of which can be found at
19+
# http://oss.oracle.com/licenses/universal-foss-exception.
1520
#
16-
# This program is distributed in the hope that it will be useful,
17-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
# GNU General Public License for more details.
21+
# This program is distributed in the hope that it will be useful, but
22+
# WITHOUT ANY WARRANTY; without even the implied warranty of
23+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24+
# See the GNU General Public License, version 2.0, for more details.
2025
#
2126
# You should have received a copy of the GNU General Public License
22-
# along with this program; if not, write to the Free Software
23-
# Foundation, Incur., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27+
# along with this program; if not, write to the Free Software Foundation, Inc.,
28+
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2429

2530
""" BUG21879859
2631
"""

tests/issues/test_bug21879914.py

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
# -*- coding: utf-8 -*-
2-
# MySQL Connector/Python - MySQL driver written in Python.
3-
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
4-
5-
# MySQL Connector/Python is licensed under the terms of the GPLv2
6-
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
7-
# MySQL Connectors. There are special exceptions to the terms and
8-
# conditions of the GPLv2 as it is applied to this software, see the
9-
# FOSS License Exception
10-
# <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
2+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
113
#
124
# This program is free software; you can redistribute it and/or modify
13-
# it under the terms of the GNU General Public License as published by
14-
# the Free Software Foundation.
5+
# it under the terms of the GNU General Public License, version 2.0, as
6+
# published by the Free Software Foundation.
157
#
16-
# This program is distributed in the hope that it will be useful,
17-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
# GNU General Public License for more details.
8+
# This program is also distributed with certain software (including
9+
# but not limited to OpenSSL) that is licensed under separate terms,
10+
# as designated in a particular file or component or in included license
11+
# documentation. The authors of MySQL hereby grant you an
12+
# additional permission to link the program and your derivative works
13+
# with the separately licensed software that they have included with
14+
# MySQL.
15+
#
16+
# Without limiting anything contained in the foregoing, this file,
17+
# which is part of MySQL Connector/Python, is also subject to the
18+
# Universal FOSS Exception, version 1.0, a copy of which can be found at
19+
# http://oss.oracle.com/licenses/universal-foss-exception.
20+
#
21+
# This program is distributed in the hope that it will be useful, but
22+
# WITHOUT ANY WARRANTY; without even the implied warranty of
23+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24+
# See the GNU General Public License, version 2.0, for more details.
2025
#
2126
# You should have received a copy of the GNU General Public License
22-
# along with this program; if not, write to the Free Software
23-
# Foundation, Incur., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27+
# along with this program; if not, write to the Free Software Foundation, Inc.,
28+
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2429

2530
""" BUG21879914 Fix using C/Extension with only CA given
2631
"""

tests/issues/test_bug22545879.py

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
# -*- coding: utf-8 -*-
2-
# MySQL Connector/Python - MySQL driver written in Python.
3-
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
4-
5-
# MySQL Connector/Python is licensed under the terms of the GPLv2
6-
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
7-
# MySQL Connectors. There are special exceptions to the terms and
8-
# conditions of the GPLv2 as it is applied to this software, see the
9-
# FOSS License Exception
10-
# <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
2+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
113
#
124
# This program is free software; you can redistribute it and/or modify
13-
# it under the terms of the GNU General Public License as published by
14-
# the Free Software Foundation.
5+
# it under the terms of the GNU General Public License, version 2.0, as
6+
# published by the Free Software Foundation.
7+
#
8+
# This program is also distributed with certain software (including
9+
# but not limited to OpenSSL) that is licensed under separate terms,
10+
# as designated in a particular file or component or in included license
11+
# documentation. The authors of MySQL hereby grant you an
12+
# additional permission to link the program and your derivative works
13+
# with the separately licensed software that they have included with
14+
# MySQL.
15+
#
16+
# Without limiting anything contained in the foregoing, this file,
17+
# which is part of MySQL Connector/Python, is also subject to the
18+
# Universal FOSS Exception, version 1.0, a copy of which can be found at
19+
# http://oss.oracle.com/licenses/universal-foss-exception.
1520
#
16-
# This program is distributed in the hope that it will be useful,
17-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
# GNU General Public License for more details.
21+
# This program is distributed in the hope that it will be useful, but
22+
# WITHOUT ANY WARRANTY; without even the implied warranty of
23+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24+
# See the GNU General Public License, version 2.0, for more details.
2025
#
2126
# You should have received a copy of the GNU General Public License
22-
# along with this program; if not, write to the Free Software
23-
# Foundation, Incur., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27+
# along with this program; if not, write to the Free Software Foundation, Inc.,
28+
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2429

2530
""" BUG22545879 Fix reading and using ssl-cipher MySQL option
2631
"""

0 commit comments

Comments
 (0)