summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2021-07-04 19:29:19 +0200
committerFederico Caselli <cfederico87@gmail.com>2021-07-04 20:54:33 +0200
commitfb81f9c8d914f9911925dd3f4e77d7fc374b267c (patch)
treebc41febba7eb8c1fab88909a0a13ee04d4cf505a /test
parentb920869ef54d05e73e2a980b73647d6050ffeb9d (diff)
downloadsqlalchemy-fb81f9c8d914f9911925dd3f4e77d7fc374b267c.tar.gz
Replace all http:// links to https://
Also replace http://pypi.python.org/pypi with https://pypi.org/project Change-Id: I84b5005c39969a82140706472989f2a30b0c7685
Diffstat (limited to 'test')
-rw-r--r--test/aaa_profiling/test_memusage.py2
-rw-r--r--test/base/test_except.py19
-rw-r--r--test/dialect/mysql/test_types.py4
-rw-r--r--test/dialect/test_sqlite.py2
-rw-r--r--test/ext/test_hybrid.py2
-rw-r--r--test/orm/test_cascade.py10
-rw-r--r--test/orm/test_composites.py2
7 files changed, 22 insertions, 19 deletions
diff --git a/test/aaa_profiling/test_memusage.py b/test/aaa_profiling/test_memusage.py
index 2fedcdfdc..6462ab9f1 100644
--- a/test/aaa_profiling/test_memusage.py
+++ b/test/aaa_profiling/test_memusage.py
@@ -1056,7 +1056,7 @@ class MemUsageWBackendTest(EnsureZeroed):
# fails on newer versions of pysqlite due to unusual memory behavior
# in pysqlite itself. background at:
- # http://thread.gmane.org/gmane.comp.python.db.pysqlite.user/2290
+ # https://thread.gmane.org/gmane.comp.python.db.pysqlite.user/2290
@testing.crashes("mysql+cymysql", "blocking")
def test_join_cache_deprecated_coercion(self):
diff --git a/test/base/test_except.py b/test/base/test_except.py
index 7ef077659..94dc8520e 100644
--- a/test/base/test_except.py
+++ b/test/base/test_except.py
@@ -83,7 +83,7 @@ class WrapTest(fixtures.TestBase):
str(exc),
"(test.base.test_except.OperationalError) \n"
"[SQL: this is a message]\n"
- "(Background on this error at: http://sqlalche.me/e/%s/e3q8)"
+ "(Background on this error at: https://sqlalche.me/e/%s/e3q8)"
% sa_exceptions._version_token,
)
@@ -101,7 +101,7 @@ class WrapTest(fixtures.TestBase):
"(test.base.test_except.OperationalError) \n"
"[SQL: this is a message\nthis is the next line\n"
"the last line]\n"
- "(Background on this error at: http://sqlalche.me/e/%s/e3q8)"
+ "(Background on this error at: https://sqlalche.me/e/%s/e3q8)"
% sa_exceptions._version_token,
)
@@ -135,7 +135,7 @@ class WrapTest(fixtures.TestBase):
"(sqlalchemy.exc.InvalidRequestError) hello\n"
"[SQL: select * from table]\n"
"[parameters: [{'x': 1}]]\n"
- "(Background on this error at: http://sqlalche.me/e/%s/abcd)"
+ "(Background on this error at: https://sqlalche.me/e/%s/abcd)"
% sa_exceptions._version_token,
)
eq_(err.args, ("(sqlalchemy.exc.InvalidRequestError) hello",))
@@ -147,7 +147,7 @@ class WrapTest(fixtures.TestBase):
eq_(
str(orig),
"(2006, 'Test raise operational error')\n"
- "(Background on this error at: http://sqlalche.me/e/%s/dbapi)"
+ "(Background on this error at: https://sqlalche.me/e/%s/dbapi)"
% sa_exceptions._version_token,
)
@@ -159,7 +159,8 @@ class WrapTest(fixtures.TestBase):
compat.text_type(orig),
compat.u(
"méil\n(Background on this error at: "
- "http://sqlalche.me/e/%s/dbapi)" % sa_exceptions._version_token
+ "https://sqlalche.me/e/%s/dbapi)"
+ % sa_exceptions._version_token
),
)
eq_(orig.args, (u("méil"),))
@@ -232,7 +233,7 @@ class WrapTest(fixtures.TestBase):
"[SQL: this is a message]\n"
"[parameters: [{1: 1}, {1: 1}, {1: 1}, {1: 1}, {1: 1},"
" {1: 1}, {1: 1}, {1: 1}, {1: 1}, {1: 1}]]\n"
- "(Background on this error at: http://sqlalche.me/e/%s/e3q8)"
+ "(Background on this error at: https://sqlalche.me/e/%s/e3q8)"
% sa_exceptions._version_token,
)
eq_(
@@ -268,7 +269,7 @@ class WrapTest(fixtures.TestBase):
"{1: 1}, {1: 1}, {1: 1}, {1: 1}, {1: 1}, "
"{1: 1}, {1: 1} ... displaying 10 of 11 total "
"bound parameter sets ... {1: 1}, {1: 1}]]\n"
- "(Background on this error at: http://sqlalche.me/e/%s/e3q8)"
+ "(Background on this error at: https://sqlalche.me/e/%s/e3q8)"
% sa_exceptions._version_token,
)
try:
@@ -286,7 +287,7 @@ class WrapTest(fixtures.TestBase):
"[SQL: this is a message]\n"
"[parameters: [(1,), "
"(1,), (1,), (1,), (1,), (1,), (1,), (1,), (1,), (1,)]]\n"
- "(Background on this error at: http://sqlalche.me/e/%s/e3q8)"
+ "(Background on this error at: https://sqlalche.me/e/%s/e3q8)"
% sa_exceptions._version_token,
)
try:
@@ -318,7 +319,7 @@ class WrapTest(fixtures.TestBase):
"(1,), (1,), (1,), (1,), (1,), (1,), (1,) "
"... displaying 10 of 11 total bound "
"parameter sets ... (1,), (1,)]]\n"
- "(Background on this error at: http://sqlalche.me/e/%s/e3q8)"
+ "(Background on this error at: https://sqlalche.me/e/%s/e3q8)"
% sa_exceptions._version_token,
)
diff --git a/test/dialect/mysql/test_types.py b/test/dialect/mysql/test_types.py
index cf39ce4bc..0d466e26d 100644
--- a/test/dialect/mysql/test_types.py
+++ b/test/dialect/mysql/test_types.py
@@ -473,7 +473,7 @@ class TypeRoundTripTest(fixtures.TestBase, AssertsExecutionResults):
__backend__ = True
# fixed in mysql-connector as of 2.0.1,
- # see http://bugs.mysql.com/bug.php?id=73266
+ # see https://bugs.mysql.com/bug.php?id=73266
def test_precision_float_roundtrip(self, metadata, connection):
t = Table(
"t",
@@ -675,7 +675,7 @@ class TypeRoundTripTest(fixtures.TestBase, AssertsExecutionResults):
# TIMESTAMP without NULL inserts current time when passed
# NULL. when not passed, generates 0000-00-00 quite
# annoyingly.
- # the flag http://dev.mysql.com/doc/refman/5.6/en/\
+ # the flag https://dev.mysql.com/doc/refman/5.6/en/\
# server-system-variables.html#sysvar_explicit_defaults_for_timestamp
# changes this for 5.6 if set.
diff --git a/test/dialect/test_sqlite.py b/test/dialect/test_sqlite.py
index 9285041df..b5ce291eb 100644
--- a/test/dialect/test_sqlite.py
+++ b/test/dialect/test_sqlite.py
@@ -667,7 +667,7 @@ class DialectTest(
that start and end with quotes.
SQLite claims to have fixed this in
- http://www.sqlite.org/src/info/600482d161, however
+ https://www.sqlite.org/src/info/600482d161, however
it still fails if the FK points to a table name that actually
has quotes as part of its name.
diff --git a/test/ext/test_hybrid.py b/test/ext/test_hybrid.py
index 9085ccc96..3345d872d 100644
--- a/test/ext/test_hybrid.py
+++ b/test/ext/test_hybrid.py
@@ -943,7 +943,7 @@ class SpecialObjectTest(fixtures.TestBase, AssertsCompiledSQL):
"""tests against hybrids that return a non-ClauseElement.
use cases derived from the example at
- http://techspot.zzzeek.org/2011/10/21/hybrids-and-value-agnostic-types/
+ https://techspot.zzzeek.org/2011/10/21/hybrids-and-value-agnostic-types/
"""
diff --git a/test/orm/test_cascade.py b/test/orm/test_cascade.py
index a7156be4a..c2a2cef6e 100644
--- a/test/orm/test_cascade.py
+++ b/test/orm/test_cascade.py
@@ -1396,9 +1396,11 @@ class NoSaveCascadeFlushTest(_fixtures.FixtureTest):
'"Address" object is being merged into a Session along '
'the backref cascade path for relationship "User.addresses"'
# link added to this specific warning
- r".*Background on this error at: http://sqlalche.me/e/14/s9r1"
+ r".*Background on this error at: "
+ r"https://sqlalche.me/e/14/s9r1"
# link added to all RemovedIn20Warnings
- r".*Background on SQLAlchemy 2.0 at: http://sqlalche.me/e/b8d9"
+ r".*Background on SQLAlchemy 2.0 at: "
+ r"https://sqlalche.me/e/b8d9"
):
a1.user = u1
sess.add(a1)
@@ -3014,8 +3016,8 @@ class PendingOrphanTestSingleLevel(fixtures.MappedTest):
class PendingOrphanTestTwoLevel(fixtures.MappedTest):
"""test usages stated at
- http://article.gmane.org/gmane.comp.python.sqlalchemy.user/3085
- http://article.gmane.org/gmane.comp.python.sqlalchemy.user/3119
+ https://article.gmane.org/gmane.comp.python.sqlalchemy.user/3085
+ https://article.gmane.org/gmane.comp.python.sqlalchemy.user/3119
"""
@classmethod
diff --git a/test/orm/test_composites.py b/test/orm/test_composites.py
index 5fb7cf50f..b91c21d32 100644
--- a/test/orm/test_composites.py
+++ b/test/orm/test_composites.py
@@ -377,7 +377,7 @@ class PointTest(fixtures.MappedTest, testing.AssertsCompiledSQL):
"""test saving a null composite value
See google groups thread for more context:
- http://groups.google.com/group/sqlalchemy/browse_thread/thread/0c6580a1761b2c29
+ https://groups.google.com/group/sqlalchemy/browse_thread/thread/0c6580a1761b2c29
"""