Skip to content
Myr

total_seconds -> seconds for 2.6 and earlier

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 396c4bd · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/testsuite/config.py+1 added-1 removed
79 unmodified lines
8081 def test_session_lifetime(self):82 app = flask.Flask(__name__)83 app.config['PERMANENT_SESSION_LIFETIME'] = 4284 self.assert_equal(app.permanent_session_lifetime.total_seconds(), 42)84 self.assert_equal(app.permanent_session_lifetime.seconds, 42)858687class InstanceTestCase(FlaskTestCase):88
94 unmodified lines