@@ -421,47 +421,6 @@ fn runtime_txt() {
421421 each time it builds.
422422
423423
424- ERROR: failed to build: exit status 1
425- " }
426- ) ;
427- } ) ;
428- }
429-
430- #[ test]
431- #[ ignore = "integration test" ]
432- fn runtime_txt_invalid_version ( ) {
433- let mut config = default_build_config ( "tests/fixtures/runtime_txt_invalid_version" ) ;
434- config. expected_pack_result ( PackResult :: Failure ) ;
435-
436- TestRunner :: default ( ) . build ( config, |context| {
437- assert_contains ! (
438- context. pack_stdout,
439- & formatdoc! { "
440- [Determining Python version]
441-
442- [Error: The runtime.txt file isn't supported]
443- The runtime.txt file can no longer be used, since it has been
444- replaced by the more widely supported .python-version file.
445-
446- Please delete your runtime.txt file and create a new file named:
447- .python-version
448-
449- Make sure to include the '.' character at the start of the
450- filename. Don't add a file extension such as '.txt'.
451-
452- In the new file, specify your app's major Python version number
453- only. Don't include quotes or a 'python-' prefix.
454-
455- For example, to request the latest version of Python {DEFAULT_PYTHON_VERSION},
456- update your .python-version file so it contains exactly:
457- {DEFAULT_PYTHON_VERSION}
458-
459- We strongly recommend that you don't specify the Python patch
460- version number, since it will pin your app to an exact Python
461- version and so stop your app from receiving security updates
462- each time it builds.
463-
464-
465424 ERROR: failed to build: exit status 1
466425 " }
467426 ) ;
0 commit comments